Skip to content

Commit 8272601

Browse files
committed
Create log dir only when not exists
1 parent 00f9107 commit 8272601

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/symfony/src/Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public function getProjectDir(): string
4343
public function getLogDir(): string
4444
{
4545
$logDir = parent::getLogDir();
46-
\mkdir($logDir);
46+
if (!\is_dir($logDir)) {
47+
\mkdir($logDir, recursive: true);
48+
}
4749

4850
return $logDir;
4951
}

0 commit comments

Comments
 (0)