Skip to content

Commit a54dc2d

Browse files
author
Robin Chalas
committed
[Filesystem] Fix error message
1 parent 994120c commit a54dc2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Filesystem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public function tempnam(string $dir, string $prefix)
638638
public function dumpFile(string $filename, $content)
639639
{
640640
if (\is_array($content)) {
641-
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, %s given.', __METHOD__, $content));
641+
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, array given.', __METHOD__));
642642
}
643643

644644
$dir = \dirname($filename);
@@ -674,7 +674,7 @@ public function dumpFile(string $filename, $content)
674674
public function appendToFile(string $filename, $content)
675675
{
676676
if (\is_array($content)) {
677-
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, %s given.', __METHOD__, $content));
677+
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, array given.', __METHOD__));
678678
}
679679

680680
$dir = \dirname($filename);

0 commit comments

Comments
 (0)