Skip to content

Commit 9dac90d

Browse files
committed
Try to prevent error with PHP-Parser 5 when running PHPUnit tests
1 parent 5c50118 commit 9dac90d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Internal/DirectoryCreator.php

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public static function ensureDirectoryExists(
1818
bool $recursive = true,
1919
): void
2020
{
21+
if (is_dir($directory)) {
22+
return;
23+
}
24+
2125
if (@mkdir($directory, $mode, $recursive)) {
2226
return;
2327
}

0 commit comments

Comments
 (0)