diff --git a/Filesystem.php b/Filesystem.php index 7f04f6dee..c7f3dd295 100644 --- a/Filesystem.php +++ b/Filesystem.php @@ -673,7 +673,7 @@ public function dumpFile(string $filename, $content) * * @throws IOException If the file is not writable */ - public function appendToFile(string $filename, $content/*, bool $lock = false*/) + public function appendToFile(string $filename, $content/* , bool $lock = false */) { if (\is_array($content)) { throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be string or resource, array given.', __METHOD__)); diff --git a/Tests/FilesystemTest.php b/Tests/FilesystemTest.php index 0042678e6..00a757d63 100644 --- a/Tests/FilesystemTest.php +++ b/Tests/FilesystemTest.php @@ -376,7 +376,7 @@ public function testRemoveCleansInvalidLinks() // create symlink to nonexistent dir rmdir($basePath.'dir'); - $this->assertFalse(is_dir($basePath.'dir-link')); + $this->assertDirectoryDoesNotExist($basePath.'dir-link'); $this->filesystem->remove($basePath);