Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 456542a

Browse files
committed
minor #14966 [Config] Remove extra argument from method call (dosten)
This PR was merged into the 3.0-dev branch. Discussion ---------- [Config] Remove extra argument from method call | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT The `$mode` argument of `Filesystem::dumpFile()` is removed in 3.0. Commits ------- f58e5f9 Remove parameter from method call
2 parents 2b858be + f58e5f9 commit 456542a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Config/ConfigCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ public function write($content, array $metadata = null)
108108
$mode = 0666;
109109
$umask = umask();
110110
$filesystem = new Filesystem();
111-
$filesystem->dumpFile($this->file, $content, null);
111+
$filesystem->dumpFile($this->file, $content);
112112
try {
113113
$filesystem->chmod($this->file, $mode, $umask);
114114
} catch (IOException $e) {
115115
// discard chmod failure (some filesystem may not support it)
116116
}
117117

118118
if (null !== $metadata && true === $this->debug) {
119-
$filesystem->dumpFile($this->getMetaFile(), serialize($metadata), null);
119+
$filesystem->dumpFile($this->getMetaFile(), serialize($metadata));
120120
try {
121121
$filesystem->chmod($this->getMetaFile(), $mode, $umask);
122122
} catch (IOException $e) {

0 commit comments

Comments
 (0)