Skip to content

Commit 81daae1

Browse files
committed
Fix quotes in exception messages
1 parent c0180c6 commit 81daae1

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
@@ -640,7 +640,7 @@ public function tempnam(string $dir, string $prefix)
640640
public function dumpFile(string $filename, $content)
641641
{
642642
if (\is_array($content)) {
643-
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, array given.', __METHOD__));
643+
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be string or resource, array given.', __METHOD__));
644644
}
645645

646646
$dir = \dirname($filename);
@@ -676,7 +676,7 @@ public function dumpFile(string $filename, $content)
676676
public function appendToFile(string $filename, $content)
677677
{
678678
if (\is_array($content)) {
679-
throw new \TypeError(sprintf('Argument 2 passed to %s() must be string or resource, array given.', __METHOD__));
679+
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be string or resource, array given.', __METHOD__));
680680
}
681681

682682
$dir = \dirname($filename);

0 commit comments

Comments
 (0)