Remove unnecessary return types

This commit is contained in:
Julien Fastré 2023-08-30 20:49:26 +02:00
parent 37419e06fc
commit 1f2ecb923e
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -96,10 +96,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
return 'docgen' === $format && (is_object($data) || null === $data);
}
/**
* @return string|array<string>
*/
private function getExpectedType(AttributeMetadata $attribute, ReflectionClass $reflection): string|array
private function getExpectedType(AttributeMetadata $attribute, ReflectionClass $reflection): string
{
$type = null;