Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0abfb56 commit 4e2b404Copy full SHA for 4e2b404
src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php
@@ -592,7 +592,7 @@ private function isAllowedProperty(string $class, string $property): bool
592
try {
593
$reflectionProperty = new \ReflectionProperty($class, $property);
594
595
- return $reflectionProperty->getModifiers() & $this->propertyReflectionFlags;
+ return boolval($reflectionProperty->getModifiers() & $this->propertyReflectionFlags);
596
} catch (\ReflectionException $e) {
597
// Return false if the property doesn't exist
598
}
0 commit comments