Skip to content

Commit afd2419

Browse files
kalessilfabpot
authored andcommitted
[2.3] Static Code Analysis for Components
1 parent 6229e67 commit afd2419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected function parseFile($path)
190190
*/
191191
private function loadClassMetadataFromXml(ClassMetadata $metadata, $classDescription)
192192
{
193-
foreach ($classDescription->{'group-sequence-provider'} as $_) {
193+
if (count($classDescription->{'group-sequence-provider'}) > 0) {
194194
$metadata->setGroupSequenceProvider(true);
195195
}
196196

0 commit comments

Comments
 (0)