From 6eb5ade6516abbe4e7176a0798f854febe031dc4 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 14 Dec 2024 07:40:42 +0100 Subject: [PATCH] Update GraphApplication.php --- lib/GraphApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GraphApplication.php b/lib/GraphApplication.php index 81cfb6a..4d509e7 100644 --- a/lib/GraphApplication.php +++ b/lib/GraphApplication.php @@ -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); });