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 (method_exists($constructorParameter, 'isVariadic') && $constructorParameter->isVariadic()) {
341
341
if ($allowed && !$ignored && (isset($data[$key]) || \array_key_exists($key, $data))) {
342
342
if (!\is_array($data[$paramName])) {
343
-
thrownewRuntimeException(sprintf('Cannot create an instance of %s from serialized data because the variadic parameter %s can only accept an array.', $class, $constructorParameter->name));
343
+
thrownewRuntimeException(sprintf('Cannot create an instance of "%s" from serialized data because the variadic parameter "%s" can only accept an array.', $class, $constructorParameter->name));
thrownewRuntimeException(sprintf('Cannot create an instance of %s from serialized data because its constructor requires parameter "%s" to be present.', $class, $constructorParameter->name));
369
+
thrownewRuntimeException(sprintf('Cannot create an instance of "%s" from serialized data because its constructor requires parameter "%s" to be present.', $class, $constructorParameter->name));
370
370
}
371
371
}
372
372
@@ -388,7 +388,7 @@ protected function denormalizeParameter(\ReflectionClass $class, \ReflectionPara
388
388
try {
389
389
if (null !== $parameter->getClass()) {
390
390
if (!$this->serializerinstanceof DenormalizerInterface) {
391
-
thrownewLogicException(sprintf('Cannot create an instance of %s from serialized data because the serializer inject in "%s" is not a denormalizer.', $parameter->getClass(), static::class));
391
+
thrownewLogicException(sprintf('Cannot create an instance of "%s" from serialized data because the serializer inject in "%s" is not a denormalizer.', $parameter->getClass(), static::class));
if (!$this->supportsDecoding($format, $context)) {
128
-
thrownewNotEncodableValueException(sprintf('Deserialization for the format %s is not supported.', $format));
128
+
thrownewNotEncodableValueException(sprintf('Deserialization for the format "%s" is not supported.', $format));
129
129
}
130
130
131
131
$data = $this->decode($data, $format, $context);
@@ -161,7 +161,7 @@ public function normalize($data, $format = null, array $context = [])
161
161
thrownewLogicException('You must register at least one normalizer to be able to normalize objects.');
162
162
}
163
163
164
-
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type %s, no supporting normalizer found.', \get_class($data)));
164
+
thrownewNotNormalizableValueException(sprintf('Could not normalize object of type "%s", no supporting normalizer found.', \get_class($data)));
165
165
}
166
166
167
167
thrownewNotNormalizableValueException(sprintf('An unexpected value could not be normalized: %s.', !\is_resource($data) ? var_export($data, true) : sprintf('%s resource', get_resource_type($data))));
@@ -182,7 +182,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
0 commit comments