From 7fb47fc7dbdc978e118ca838c89a27a4a5759c0f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 15 Mar 2020 11:08:38 +0100 Subject: [PATCH] Add missing dots at the end of exception messages --- Internal/Exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Internal/Exporter.php b/Internal/Exporter.php index d1ee987..7626a0a 100644 --- a/Internal/Exporter.php +++ b/Internal/Exporter.php @@ -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())) {