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:
Nyholm 2021-03-28 14:06:57 +02:00
commit 77870a5cec
No known key found for this signature in database
GPG Key ID: D6332DE2B6F8FA38
1 changed files with 1 additions and 1 deletions

View File

@ -1731,7 +1731,7 @@ class FilesystemTest extends FilesystemTestCase
file_put_contents($filename, 'FOO BAR');
chmod($filename, 0745);
$this->filesystem->dumpFile($filename, 'bar', null);
$this->filesystem->dumpFile($filename, 'bar');
$this->assertFilePermissions(745, $filename);
}