Skip to content

Commit

Permalink
Reset when override
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Nov 12, 2024
1 parent 077b5e6 commit 05069b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Type/Definition/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05069b3

Please sign in to comment.