Skip to content

Commit

Permalink
Update src/Container.php
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
np25071984 and vjik authored Jan 11, 2025
1 parent b835cda commit bd5f348
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ final class Container implements ContainerInterface
*/
public function __construct(?ContainerConfigInterface $config = null)
{
if (null === $config) {
$config = ContainerConfig::create();
}
$config ??= ContainerConfig::create();

$this->definitions = new DefinitionStorage(
[
Expand Down

0 comments on commit bd5f348

Please sign in to comment.