Skip to content

Commit

Permalink
Add missing dots at the end of exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 15, 2020
1 parent 1a76a94 commit 7fb47fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Internal/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount

if ($reflector->hasMethod('__serialize')) {
if (!$reflector->getMethod('__serialize')->isPublic()) {
throw new \Error(sprintf('Call to %s method %s::__serialize()', $reflector->getMethod('__serialize')->isProtected() ? 'protected' : 'private', $class));
throw new \Error(sprintf('Call to %s method %s::__serialize().', $reflector->getMethod('__serialize')->isProtected() ? 'protected' : 'private', $class));
}

if (!\is_array($properties = $value->__serialize())) {
Expand Down

0 comments on commit 7fb47fc

Please # to comment.