8000 bug #41104 Fix return type in isAllowedProperty method on ReflectionE… · symfony/symfony@3f57255 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f57255

Browse files
committed
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 ------- 8c0e8f7 Fix return type on isAllowedProperty method
2 parents 960891e + 8c0e8f7 commit 3f57255

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