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
* 4.4:
Add missing dots at the end of exception messages
[DI][Form] Fixed test suite (TimeType changes & unresolved merge conflict)
Fix bad merge
Add missing dots at the end of exception messages
thrownewNotEncodableValueException(sprintf('An unexpected value could not be serialized: %s', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
431
+
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), $context[self::CIRCULAR_REFERENCE_LIMIT] ?? $this->defaultContext[self::CIRCULAR_REFERENCE_LIMIT]));
216
+
thrownewCircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d).', \get_class($object), $context[self::CIRCULAR_REFERENCE_LIMIT] ?? $this->defaultContext[self::CIRCULAR_REFERENCE_LIMIT]));
217
217
}
218
218
219
219
/**
@@ -406,7 +406,7 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
406
406
try {
407
407
if (null !== $parameter->getClass()) {
408
408
if (!$this->serializerinstanceof DenormalizerInterface) {
409
-
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));
409
+
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));
if ($this->classDiscriminatorResolver && $mapping = $this->classDiscriminatorResolver->getMappingForClass($class)) {
217
217
if (!isset($data[$mapping->getTypeProperty()])) {
218
-
thrownewRuntimeException(sprintf('Type property "%s" not found for the abstract object "%s"', $mapping->getTypeProperty(), $class));
218
+
thrownewRuntimeException(sprintf('Type property "%s" not found for the abstract object "%s".', $mapping->getTypeProperty(), $class));
219
219
}
220
220
221
221
$type = $data[$mapping->getTypeProperty()];
222
222
if (null === ($mappedClass = $mapping->getClassForType($type))) {
223
-
thrownewRuntimeException(sprintf('The type "%s" has no mapped class for the abstract object "%s"', $type, $class));
223
+
thrownewRuntimeException(sprintf('The type "%s" has no mapped class for the abstract object "%s".', $type, $class));
224
224
}
225
225
226
226
$class = $mappedClass;
@@ -414,7 +414,7 @@ private function validateAndDenormalize(string $currentClass, string $attribute,
414
414
415
415
if (Type::BUILTIN_TYPE_OBJECT === $builtinType) {
416
416
if (!$this->serializerinstanceof DenormalizerInterface) {
417
-
thrownewLogicException(sprintf('Cannot denormalize attribute "%s" for class "%s" because injected serializer is not a denormalizer', $attribute, $class));
417
+
thrownewLogicException(sprintf('Cannot denormalize attribute "%s" for class "%s" because injected serializer is not a denormalizer.', $attribute, $class));
if (!$this->supportsDecoding($format, $context)) {
131
-
thrownewNotEncodableValueException(sprintf('Deserialization for the format %s is not supported', $format));
131
+
thrownewNotEncodableValueException(sprintf('Deserialization for the format %s is not supported.', $format));
132
132
}
133
133
134
134
$data = $this->decode($data, $format, $context);
@@ -167,7 +167,7 @@ public function normalize($data, string $format = null, array $context = [])
167
167
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type %s, no supporting normalizer found.', \get_class($data)));
168
168
}
169
169
170
-
thrownewNotNormalizableValueException(sprintf('An unexpected value could not be normalized: %s', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
170
+
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