Skip to content

Commit 2ed044e

Browse files
committed
minor: fix test
1 parent 1de2fe8 commit 2ed044e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Normalizer/AbstractNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ protected function instantiateObject(array &$data, string $class, array &$contex
404404
}
405405

406406
$exception = NotNormalizableValueException::createForUnexpectedDataType(
407-
sprintf('Failed to create object because it misses the "%s" property.', $constructorParameter->name),
407+
sprintf('Failed to create object because the class misses the "%s" property.', $constructorParameter->name),
408408
$data,
409409
['unknown'],
410410
$context['deserialization_path'] ?? null,

Tests/SerializerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ public function testCollectDenormalizationErrors(?ClassMetadataFactory $classMet
10001000
],
10011001
'path' => 'php74FullWithConstructor',
10021002
'useMessageForUser' => true,
1003-
'message' => 'Failed to create object because the object miss the "constructorArgument" property.',
1003+
'message' => 'Failed to create object because the class misses the "constructorArgument" property.',
10041004
],
10051005
$classMetadataFactory ?
10061006
[

0 commit comments

Comments
 (0)