Skip to content

Commit f5dc40c

Browse files
authored
Fix wrong exception message.
1 parent 43dd677 commit f5dc40c

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)