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.
1 parent d564c6a commit 7a8a72dCopy full SHA for 7a8a72d
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