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
This commit is contained in:
Fabien Potencier 2015-06-13 00:00:40 +02:00
commit 456542a406

View File

@ -108,7 +108,7 @@ class ConfigCache implements ConfigCacheInterface
$mode = 0666;
$umask = umask();
$filesystem = new Filesystem();
$filesystem->dumpFile($this->file, $content, null);
$filesystem->dumpFile($this->file, $content);
try {
$filesystem->chmod($this->file, $mode, $umask);
} catch (IOException $e) {
@ -116,7 +116,7 @@ class ConfigCache implements ConfigCacheInterface
}
if (null !== $metadata && true === $this->debug) {
$filesystem->dumpFile($this->getMetaFile(), serialize($metadata), null);
$filesystem->dumpFile($this->getMetaFile(), serialize($metadata));
try {
$filesystem->chmod($this->getMetaFile(), $mode, $umask);
} catch (IOException $e) {