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.
2 parents 43dd677 + f5dc40c commit adcc1d8Copy full SHA for adcc1d8
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