E56D [Form] do not iterate twice on the extended types · symfony/symfony@75179d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75179d3

Browse files
committed
[Form] do not iterate twice on the extended types
1 parent 343da8c commit 75179d3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Symfony/Component/Form/AbstractExtension.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,7 @@ private function initTypeExtensions()
175175
throw new UnexpectedTypeException($extension, 'Symfony\Component\Form\FormTypeExtensionInterface');
176176
}
177177

178-
$extendedTypes = [];
179178
foreach ($extension::getExtendedTypes() as $extendedType) {
180-
$extendedTypes[] = $extendedType;
181-
}
182-
183-
foreach ($extendedTypes as $extendedType) {
184179
$this->typeExtensions[$extendedType][] = $extension;
185180
}
186181
}

0 commit comments

Comments
 (0)
0