bug #41104 Fix return type in isAllowedProperty method on ReflectionExtractor class (Tomanhez)
This PR was merged into the 5.2 branch.
Discussion
----------
Fix return type in isAllowedProperty method on ReflectionExtractor class
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #41103
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Commits
-------
8c0e8f7d83
Fix return type on isAllowedProperty method
This commit is contained in:
commit
3f572553cf
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user