From 57f6119d31a7fad57ef233edd609864e574eee6a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 7 Sep 2024 14:36:55 +0200 Subject: [PATCH] Remove obsolete code --- src/ExtensionSet.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ExtensionSet.php b/src/ExtensionSet.php index 32377b0fc..d2848b59c 100644 --- a/src/ExtensionSet.php +++ b/src/ExtensionSet.php @@ -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) {