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
Compile Error: Declaration of Symfony\Component\Serializer\Normalizer\ProblemNormalizer::normalize($exception, $format = NULL, array $context = Array) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize($object, ?string $format = NULL, array $context = Array)
In Normalizer/ProblemNormalizer.php. The methods don't use the type hints as defined in NormalizerInterface. This is what I changed and then it works:
public function normalize($exception, $format = null, array $context = [])
to public function normalize($object, string $format = null, array $context = [])
and
public function supportsNormalization($data, $format = null): bool
to public function supportsNormalization($data, string $format = null): bool