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 57ff2e2 commit a527b20Copy full SHA for a527b20
Kernel.php
@@ -605,7 +605,7 @@ protected function buildContainer()
605
{
606
foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
607
if (!is_dir($dir)) {
608
- if (false === @mkdir($dir, 0777, true)) {
+ if (false === @mkdir($dir, 0777, true) && !is_dir($dir)) {
609
throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
610
}
611
} elseif (!is_writable($dir)) {
0 commit comments