Skip to content

Commit

Permalink
Fix: Simplify (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored Sep 5, 2023
1 parent 75318aa commit e61f0b7
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 @@ -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());
}
}

0 comments on commit e61f0b7

Please sign in to comment.