We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43dd677 commit f5dc40cCopy full SHA for f5dc40c
src/Drivers/YamlDriver.php
@@ -16,7 +16,7 @@ public function serialize($data): string
16
}
17
18
if (! is_array($data)) {
19
- throw new CantBeSerialized('Only strings can be serialized to json');
+ throw new CantBeSerialized('Only array and strings can be serialized to yaml.');
20
21
22
return Yaml::dump($data, PHP_INT_MAX);
0 commit comments