8000 Fix return type on isAllowedProperty method · alexpott/symfony@8c0e8f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c0e8f7

Browse files
committed
Fix return type on isAllowedProperty method
1 parent 6e22f08 commit 8c0e8f7

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 (bool) ($reflectionProperty->getModifiers() & $this->propertyReflectionFlags);
596596
} catch (\ReflectionException $e) {
597597
// Return false if the property doesn't exist
598598
}

0 commit comments

Comments
 (0)
0