You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewNotEncodableValueException(sprintf('An unexpected value could not be serialized: %s', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
476
+
thrownewNotEncodableValueException(sprintf('An unexpected value could not be serialized: %s.', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
thrownewCircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d)', \get_class($object), $this->circularReferenceLimit));
330
+
thrownewCircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d).', \get_class($object), $this->circularReferenceLimit));
331
331
}
332
332
333
333
/**
@@ -524,7 +524,7 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
524
524
try {
525
525
if (null !== $parameter->getClass()) {
526
526
if (!$this->serializerinstanceof DenormalizerInterface) {
527
-
thrownewLogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer', $parameter->getClass(), self::class));
527
+
thrownewLogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer.', $parameter->getClass(), self::class));
@@ -446,7 +446,7 @@ private function validateAndDenormalize(string $currentClass, string $attribute,
446
446
447
447
if (Type::BUILTIN_TYPE_OBJECT === $builtinType) {
448
448
if (!$this->serializerinstanceof DenormalizerInterface) {
449
-
thrownewLogicException(sprintf('Cannot denormalize attribute "%s" for class "%s" because injected serializer is not a denormalizer', $attribute, $class));
449
+
thrownewLogicException(sprintf('Cannot denormalize attribute "%s" for class "%s" because injected serializer is not a denormalizer.', $attribute, $class));
if (!$this->supportsDecoding($format, $context)) {
137
-
thrownewNotEncodableValueException(sprintf('Deserialization for the format %s is not supported', $format));
137
+
thrownewNotEncodableValueException(sprintf('Deserialization for the format %s is not supported.', $format));
138
138
}
139
139
140
140
$data = $this->decode($data, $format, $context);
@@ -173,7 +173,7 @@ public function normalize($data, $format = null, array $context = [])
173
173
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type %s, no supporting normalizer found.', \get_class($data)));
174
174
}
175
175
176
-
thrownewNotNormalizableValueException(sprintf('An unexpected value could not be normalized: %s', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
176
+
thrownewNotNormalizableValueException(sprintf('An unexpected value could not be normalized: %s.', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
0 commit comments