diff --git a/src/Type/Definition/Type.php b/src/Type/Definition/Type.php index d59bac423..5aa0a817b 100644 --- a/src/Type/Definition/Type.php +++ b/src/Type/Definition/Type.php @@ -150,9 +150,7 @@ public static function getStandardTypes(): array */ public static function overrideStandardTypes(array $types): void { - $standardTypes = static::$standardTypes ?? []; self::reset(); - static::$standardTypes = $standardTypes; foreach ($types as $type) { // @phpstan-ignore-next-line generic type is not enforced by PHP