minor #40608 [Filesystem] Fix dumpFile() method call (sebpacz)
This PR was merged into the 4.4 branch.
Discussion
----------
[Filesystem] Fix dumpFile() method call
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | ?
| New feature? | no
| Deprecations? | no
| Tickets | ---
| License | MIT
| Doc PR | ---
The dumpFile() method in the Filesystem component takes two arguments (filename and content). I found a test with the third argument set to null.
Commits
-------
2b33d4af65
[Filesystem] Fix dumpFile() method call
This commit is contained in:
commit
77870a5cec
@ -1731,7 +1731,7 @@ class FilesystemTest extends FilesystemTestCase
|
|||||||
file_put_contents($filename, 'FOO BAR');
|
file_put_contents($filename, 'FOO BAR');
|
||||||
chmod($filename, 0745);
|
chmod($filename, 0745);
|
||||||
|
|
||||||
$this->filesystem->dumpFile($filename, 'bar', null);
|
$this->filesystem->dumpFile($filename, 'bar');
|
||||||
|
|
||||||
$this->assertFilePermissions(745, $filename);
|
$this->assertFilePermissions(745, $filename);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user