Skip to content

Commit

Permalink
Merge pull request #34 from abmmhasan/feature/improvement-j
Browse files Browse the repository at this point in the history
Update Container.php
  • Loading branch information
abmmhasan authored Jan 24, 2024
2 parents d401ae7 + eb4d748 commit 09e68ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Container implements ContainerInterface
{
protected static array $instances;
protected Repository $repository;
protected readonly Repository $repository;
protected string $resolver = InjectedCall::class;

/**
Expand All @@ -30,7 +30,7 @@ class Container implements ContainerInterface
* @param string $instanceAlias The alias of the instance (default: 'default').
* @return void
*/
public function __construct(private string $instanceAlias = 'default')
public function __construct(private readonly string $instanceAlias = 'default')
{
self::$instances[$this->instanceAlias] ??= $this;
$this->repository = new Repository();
Expand Down

0 comments on commit 09e68ba

Please sign in to comment.