From 8c0e8f7d83413028fb63b07e44277cda6b6700cf Mon Sep 17 00:00:00 2001 From: Tomanhez Date: Tue, 4 May 2021 15:54:33 +0200 Subject: [PATCH] Fix return type on isAllowedProperty method --- .../Component/PropertyInfo/Extractor/ReflectionExtractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php index c1ce405437..78606db626 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php @@ -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 }