Skip to content

Commit

Permalink
Update GraphApplication.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 14, 2024
1 parent 92453a6 commit 6eb5ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GraphApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class GraphApplication
*/
public function start(string $jsonGlob): int
{
$jsonFiles = glob($jsonGlob, GLOB_NOSORT);
$jsonFiles = glob($jsonGlob, GLOB_NOSORT) ?: [];
usort( $jsonFiles, function( string $a, string $b ) {
return filemtime($a) - filemtime($b);
});
Expand Down

0 comments on commit 6eb5ade

Please sign in to comment.