diff --git a/src/Support/Screenshot.php b/src/Support/Screenshot.php index 57b9e996..a8c39f98 100644 --- a/src/Support/Screenshot.php +++ b/src/Support/Screenshot.php @@ -72,6 +72,10 @@ public static function cleanup(): void self::dir().'/ImageDiffView', self::dir(), ] as $dir) { + if (! is_dir($dir)) { + continue; + } + $files = glob($dir.'/*'); if (is_array($files)) {