Skip to content

Commit

Permalink
Update Container.php
Browse files Browse the repository at this point in the history
  • Loading branch information
abmmhasan committed Jan 24, 2024
1 parent be0520e commit eb4d748
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 eb4d748

Please sign in to comment.