Skip to content

Commit

Permalink
Fix: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 4, 2023
1 parent 1f83b68 commit 397a7d3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Faker/Container/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 397a7d3

Please sign in to comment.