We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3eaa78 + 7a8a72d commit f5609e8Copy full SHA for f5609e8
src/Symfony/Component/PropertyInfo/Extractor/SerializerExtractor.php
@@ -48,7 +48,7 @@ public function getProperties($class, array $context = array())
48
$serializerClassMetadata = $this->classMetadataFactory->getMetadataFor($class);
49
50
foreach ($serializerClassMetadata->getAttributesMetadata() as $serializerAttributeMetadata) {
51
- if (count(array_intersect($context['serializer_groups'], $serializerAttributeMetadata->getGroups())) > 0) {
+ if (array_intersect($context['serializer_groups'], $serializerAttributeMetadata->getGroups())) {
52
$properties[] = $serializerAttributeMetadata->getName();
53
}
54
0 commit comments