We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5109f32 commit 99ce044Copy full SHA for 99ce044
src/Filesystem.php
@@ -35,6 +35,10 @@ public function has(string $filename): bool
35
*/
36
public function getNamesWithDifferentExtension(string $fileName)
37
{
38
+ if(! file_exists($this->basePath)) {
39
+ return [];
40
+ }
41
+
42
$extension = pathinfo($fileName, PATHINFO_EXTENSION);
43
44
$baseName = substr($fileName, 0, strlen($fileName) - strlen($extension) - 1);
0 commit comments