### Symfony version(s) affected 6.2.0 ### Description If SerializedPath is set on non-scalar types, eg. `DateTimeImmutable`: ```php final class ObjectDummyWithContextAttributeAndSerializedPath { public function __construct( #[Context([DateTimeNormalizer::FORMAT_KEY => 'm-d-Y'])] #[SerializedPath('[property][with_path]')] public \DateTimeImmutable $propertyWithPath, ) { } } ``` Normalization fails with error: ``` Symfony\Component\Serializer\Exception\LogicException: The element you are trying to set is already populated: "[property][with_path]" ``` But `DateTimeImmutable` is serialized into string, so expected result is: ```php ['property' => ['with_path' => '02-22-2023'] ``` ### How to reproduce I created unit test for this case, which should be sufficient for reproducing: https://github.com/HonzaMatosik/symfony/commit/51f1969ebb6beaae25b8d942d9ac45b8a6768138 ### Possible Solution _No response_ ### Additional Context _No response_