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 0479d87 commit c2ffd53Copy full SHA for c2ffd53
src/Symfony/Component/Filesystem/Filesystem.php
@@ -667,14 +667,14 @@ public function dumpFile(string $filename, $content)
667
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be string or resource, array given.', __METHOD__));
668
}
669
670
+ $dir = \dirname($filename);
671
+
672
if (is_link($filename) && $linkTarget = $this->readlink($filename)) {
- $this->dumpFile(Path::makeAbsolute($linkTarget, \dirname($filename)), $content);
673
+ $this->dumpFile(Path::makeAbsolute($linkTarget, $dir), $content);
674
675
return;
676
677
- $dir = \dirname($filename);
-
678
if (!is_dir($dir)) {
679
$this->mkdir($dir);
680
0 commit comments