From e61f0b75bcdb161daeba0d7e6fbeb476e5eb1b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 5 Sep 2023 09:58:35 +0200 Subject: [PATCH] Fix: Simplify (#720) --- src/Faker/Container/ContainerBuilder.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Faker/Container/ContainerBuilder.php b/src/Faker/Container/ContainerBuilder.php index 8b2223d522..bc3b17a06a 100644 --- a/src/Faker/Container/ContainerBuilder.php +++ b/src/Faker/Container/ContainerBuilder.php @@ -61,12 +61,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()); } }