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
Description
Trying to upgrade project to symfony 6, getting Compile Error:
" Fatal error: Declaration of ApiPlatform\Core\JsonLd\Serializer\ObjectNormalizer::normalize($object, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(mixed $object, ?string $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /Users/mitalcoi/development/phonedo_project/phonedo/vendor/api-platform/core/src/JsonLd/Serializer/ObjectNormalizer.php on line 65
"
The only way to temporary fix - is to update directly in vendor/ folder specific types:
The text was updated successfully, but these errors were encountered:
The NormalizerInterface::normalize() return type declaration has been removed in symfony/serializer v6.0.1 so it looks like you installed v6.0.0. Try running composer update symfony/serializer --no-cache
API Platform version(s) affected:2.6.8
Description
Trying to upgrade project to symfony 6, getting Compile Error:
" Fatal error: Declaration of ApiPlatform\Core\JsonLd\Serializer\ObjectNormalizer::normalize($object, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(mixed $object, ?string $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /Users/mitalcoi/development/phonedo_project/phonedo/vendor/api-platform/core/src/JsonLd/Serializer/ObjectNormalizer.php on line 65
"
The only way to temporary fix - is to update directly in vendor/ folder specific types:
The text was updated successfully, but these errors were encountered: