Remove obsolete code

This commit is contained in:
Fabien Potencier
2024-09-07 14:36:55 +02:00
parent b1cdda25c6
commit 57f6119d31
+1 -6
View File
@@ -329,12 +329,7 @@ final class ExtensionSet
continue;
}
$extGlobals = $extension->getGlobals();
if (!\is_array($extGlobals)) {
throw new \UnexpectedValueException(\sprintf('"%s::getGlobals()" must return an array of globals.', \get_class($extension)));
}
$globals = array_merge($globals, $extGlobals);
$globals = array_merge($globals, $extension->getGlobals());
}
if ($this->initialized) {