Skip to content

Commit eca40f9

Browse files
committed
-refactoring
1 parent 5cf7796 commit eca40f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Serializer/AbstractItemNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ protected function instantiateObject(array &$data, string $class, array &$contex
387387
}
388388

389389
$exception = NotNormalizableValueException::createForUnexpectedDataType(
390-
sprintf('Failed to create object because the class misses the "%s" property.', $constructorParameter->name),
390+
\sprintf('Failed to create object because the class misses the "%s" property.', $constructorParameter->name),
391391
null,
392392
[$constructorParameterType],
393393
$attributeContext['deserialization_path'] ?? null,
@@ -433,7 +433,7 @@ protected function instantiateObject(array &$data, string $class, array &$contex
433433
unset($context['has_constructor']);
434434

435435
if (!$reflectionClass->isInstantiable()) {
436-
throw NotNormalizableValueException::createForUnexpectedDataType(sprintf('Failed to create object because the class "%s" is not instantiable.', $class), $data, ['unknown'], $context['deserialization_path'] ?? null);
436+
throw NotNormalizableValueException::createForUnexpectedDataType(\sprintf('Failed to create object because the class "%s" is not instantiable.', $class), $data, ['unknown'], $context['deserialization_path'] ?? null);
437437
}
438438

439439
return new $class();

0 commit comments

Comments
 (0)