diff --git a/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php b/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php index c0528defcd9e..681aa24e327a 100644 --- a/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php +++ b/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php @@ -201,7 +201,7 @@ public function getTypes($class, $property, array $context = []) } case Type::BUILTIN_TYPE_INT: case Type::BUILTIN_TYPE_STRING: - if ($enumType !== null) { + if ($enumType) { return [$enumType]; } break;