Skip to content

Commit 1e103a7

Browse files
committed
Merge branch '2.6' into 2.7
Conflicts: src/Symfony/Component/PropertyAccess/PropertyAccessor.php src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php
2 parents a2feb79 + 1a07aed commit 1e103a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function dump(Data $data)
115115

116116
if (false === $name) {
117117
$name = strtr($file, '\\', '/');
118-
$name = substr($file, strrpos($file, '/') + 1);
118+
$name = substr($name, strrpos($name, '/') + 1);
119119
}
120120

121121
$this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ protected function buildContainer()
614614
{
615615
foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
616616
if (!is_dir($dir)) {
617-
if (false === @mkdir($dir, 0777, true)) {
617+
if (false === @mkdir($dir, 0777, true) && !is_dir($dir)) {
618618
throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
619619
}
620620
} elseif (!is_writable($dir)) {

0 commit comments

Comments
 (0)