Skip to content

Commit adcc1d8

Browse files
authored
Merge pull request #98 from mathieutu/patch-2
Fix wrong exception message.
2 parents 43dd677 + f5dc40c commit adcc1d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Drivers/YamlDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function serialize($data): string
1616
}
1717

1818
if (! is_array($data)) {
19-
throw new CantBeSerialized('Only strings can be serialized to json');
19+
throw new CantBeSerialized('Only array and strings can be serialized to yaml.');
2020
}
2121

2222
return Yaml::dump($data, PHP_INT_MAX);

0 commit comments

Comments
 (0)