8000
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 1daed82 commit b8a9e7cCopy full SHA for b8a9e7c
src/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.php
@@ -74,6 +74,10 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
74
}
75
76
if (isset($data['groups'])) {
77
+ if (!is_array($data['groups'])) {
78
+ throw new MappingException('The "groups" key must be an array of strings.');
79
+ }
80
+
81
foreach ($data['groups'] as $group) {
82
if (!is_string($group)) {
83
throw new MappingException('Group names must be strings.');
0 commit comments