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
if ($allowed && !$ignored && (isset($data[$key]) || \array_key_exists($key, $data))) {
356
356
if (!\is_array($data[$paramName])) {
357
-
thrownewRuntimeException(sprintf('Cannot create an instance of %s from serialized data because the variadic parameter %s can only accept an array.', $class, $constructorParameter->name));
357
+
thrownewRuntimeException(sprintf('Cannot create an instance of "%s" from serialized data because the variadic parameter "%s" can only accept an array.', $class, $constructorParameter->name));
thrownewMissingConstructorArgumentsException(sprintf('Cannot create an instance of %s from serialized data because its constructor requires parameter "%s" to be present.', $class, $constructorParameter->name));
387
+
thrownewMissingConstructorArgumentsException(sprintf('Cannot create an instance of "%s" from serialized data because its constructor requires parameter "%s" to be present.', $class, $constructorParameter->name));
388
388
}
389
389
}
390
390
@@ -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->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);
@@ -164,7 +164,7 @@ public function normalize($data, string $format = null, array $context = [])
164
164
thrownewLogicException('You must register at least one normalizer to be able to normalize objects.');
165
165
}
166
166
167
-
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type %s, no supporting normalizer found.', \get_class($data)));
167
+
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type "%s", no supporting normalizer found.', \get_class($data)));
168
168
}
169
169
170
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))));
@@ -185,7 +185,7 @@ public function denormalize($data, string $type, string $format = null, array $c
$this->expectExceptionMessage('Cannot create an instance of '.ConstructorArgumentsObject::class.' from serialized data because its constructor requires parameter "bar" to be present.');
58
+
$this->expectExceptionMessage('Cannot create an instance of "'.ConstructorArgumentsObject::class.'" from serialized data because its constructor requires parameter "bar" to be present.');
0 commit comments