diff --git a/src/Faker/Container/ContainerBuilder.php b/src/Faker/Container/ContainerBuilder.php index eab78da402..bde465b70a 100644 --- a/src/Faker/Container/ContainerBuilder.php +++ b/src/Faker/Container/ContainerBuilder.php @@ -68,12 +68,6 @@ public static function defaultExtensions(): array public static function getDefault(): ContainerInterface { - $instance = new self(); - - foreach (self::defaultExtensions() as $id => $definition) { - $instance->add($id, $definition); - } - - return $instance->build(); + return new Container(self::defaultExtensions()); } }