diff --git a/app/Console/Commands/NetgesconGitSyncCommand.php b/app/Console/Commands/NetgesconGitSyncCommand.php index 8a16a5d..b6c92d0 100644 --- a/app/Console/Commands/NetgesconGitSyncCommand.php +++ b/app/Console/Commands/NetgesconGitSyncCommand.php @@ -134,7 +134,7 @@ public function handle(): int return self::FAILURE; } - $cleanupWorktree = static function () use ($repoPath, $worktreePath): void { + $cleanupWorktree = function () use ($repoPath, $worktreePath): void { Process::path($repoPath)->timeout(1800)->run($this->gitCommandArgs($repoPath, ['worktree', 'remove', '--force', $worktreePath])); if (is_dir($worktreePath)) { File::deleteDirectory($worktreePath);