Skip to content

Commit

Permalink
Add typehint to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
markwalet committed Jan 7, 2025
1 parent 284ffb2 commit 502588e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Repositories/GitPathsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function diff($branch)
'untracked' => tap(new Process(['git', 'ls-files', '--others', '--exclude-standard', '--', '**.php']))->run(),
];

/** @var Collection<int, string> $files */
$files = collect($files)
->each(fn ($process) => abort_if(
boolean: ! $process->isSuccessful(),
Expand Down

0 comments on commit 502588e

Please sign in to comment.