Fix return type on isAllowedProperty method

This commit is contained in:
Tomanhez 2021-05-04 15:54:33 +02:00
parent 6e22f082c3
commit 8c0e8f7d83

View File

@ -592,7 +592,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
try {
$reflectionProperty = new \ReflectionProperty($class, $property);
return $reflectionProperty->getModifiers() & $this->propertyReflectionFlags;
return (bool) ($reflectionProperty->getModifiers() & $this->propertyReflectionFlags);
} catch (\ReflectionException $e) {
// Return false if the property doesn't exist
}