Fix return type on isAllowedProperty method
This commit is contained in:
parent
6e22f082c3
commit
8c0e8f7d83
@ -592,7 +592,7 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
|
|||||||
try {
|
try {
|
||||||
$reflectionProperty = new \ReflectionProperty($class, $property);
|
$reflectionProperty = new \ReflectionProperty($class, $property);
|
||||||
|
|
||||||
return $reflectionProperty->getModifiers() & $this->propertyReflectionFlags;
|
return (bool) ($reflectionProperty->getModifiers() & $this->propertyReflectionFlags);
|
||||||
} catch (\ReflectionException $e) {
|
} catch (\ReflectionException $e) {
|
||||||
// Return false if the property doesn't exist
|
// Return false if the property doesn't exist
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user