Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e2b404

Browse files
committed
Fix return type on isAllowedProperty method
1 parent 0abfb56 commit 4e2b404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private function isAllowedProperty(string $class, string $property): bool
592592
try {
593593
$reflectionProperty = new \ReflectionProperty($class, $property);
594594

595-
return $reflectionProperty->getModifiers() & $this->propertyReflectionFlags;
595+
return boolval($reflectionProperty->getModifiers() & $this->propertyReflectionFlags);
596596
} catch (\ReflectionException $e) {
597597
// Return false if the property doesn't exist
598598
}

0 commit comments

Comments
 (0)