10BC0 [Form] do not iterate twice on the extended types by Tobion · Pull Request #31779 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Form] do not iterate twice on the extended types
  • Loading branch information
Tobion committed May 31, 2019
commit 75179d311487948e09b5adc50f1b03f30dc6240b
5 changes: 0 additions & 5 deletions src/Symfony/Component/Form/AbstractExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,7 @@ private function initTypeExtensions()
throw new UnexpectedTypeException($extension, 'Symfony\Component\Form\FormTypeExtensionInterface');
}

$extendedTypes = [];
foreach ($extension::getExtendedTypes() as $extendedType) {
$extendedTypes[] = $extendedType;
}

foreach ($extendedTypes as $extendedType) {
$this->typeExtensions[$extendedType][] = $extension;
}
}
Expand Down
0