Skip to content

Commit

Permalink
fix: ci bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Dec 24, 2024
1 parent 38eb1c0 commit ddba76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whatsdiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function isFileHasBeenRecentlyUpdated(string $filename): bool
// Execute the command and get the output
$output = shell_exec('git status --porcelain');

$status = collect(explode("\n", trim($output)))
$status = collect(explode("\n", trim($output?: '')))
->filter()
->mapWithKeys(function ($line) {
$line = array_values(array_filter(explode(' ', $line)));
Expand Down

0 comments on commit ddba76d

Please sign in to comment.