fix(serializer): fetch type on normalization error when possible #11625
Annotations
7 errors
Run PHPStan analysis:
src/GraphQl/Serializer/SerializerContextBuilder.php#L115
Instanceof between Symfony\Component\Serializer\NameConverter\NameConverterInterface and Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter will always evaluate to false.
|
Run PHPStan analysis:
src/GraphQl/Type/FieldsBuilder.php#L694
Instanceof between Symfony\Component\Serializer\NameConverter\NameConverterInterface and Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter will always evaluate to false.
|
Run PHPStan analysis:
src/Serializer/AbstractConstraintViolationListNormalizer.php#L65
Instanceof between Symfony\Component\Serializer\NameConverter\NameConverterInterface|null and Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter will always evaluate to false.
|
Run PHPStan analysis:
src/Symfony/Validator/Serializer/ValidationExceptionNormalizer.php#L34
Instanceof between Symfony\Component\Serializer\NameConverter\NameConverterInterface|null and Symfony\Component\Serializer\NameConverter\MetadataAwareNameConverter will always evaluate to false.
|
Run PHPStan analysis:
tests/Fixtures/TestBundle/Document/MultiRelationsDummy.php#L107
Method ApiPlatform\Tests\Fixtures\TestBundle\Document\MultiRelationsDummy::getNestedCollection() should return Doctrine\Common\Collections\Collection but returns Doctrine\Common\Collections\ReadableCollection<(int|string), array<string, mixed>>.
|
Run PHPStan analysis:
tests/Fixtures/TestBundle/Document/MultiRelationsDummy.php#L119
Method ApiPlatform\Tests\Fixtures\TestBundle\Document\MultiRelationsDummy::getNestedPaginatedCollection() should return Doctrine\Common\Collections\Collection but returns Doctrine\Common\Collections\ReadableCollection<(int|string), array<string, mixed>>.
|
Run PHPStan analysis
Process completed with exit code 1.
|
Loading