From 397a7d38670b4f01835fea0709faa6e38e316dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 4 Sep 2023 21:31:48 +0200 Subject: [PATCH] Fix: Simplify --- 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 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()); } }