Skip to content

Commit

Permalink
MetadataParser: mixed type is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Feb 8, 2023
1 parent 8c019e6 commit 41d424c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Reflection/MetadataParser.php
Expand Up @@ -244,7 +244,7 @@ protected function parseAnnotationTypes(PropertyMetadata $property, string $type
$parsedTypes[$type] = true;
}

$property->isNullable = $isNullable || isset($parsedTypes['null']) || isset($parsedTypes['NULL']);
$property->isNullable = $isNullable || isset($parsedTypes['null']) || isset($parsedTypes['NULL']) || isset($parsedTypes['mixed']);
unset($parsedTypes['null'], $parsedTypes['NULL']);
$property->types = $parsedTypes;
}
Expand Down

0 comments on commit 41d424c

Please sign in to comment.