mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 22:47:27 +02:00
chore: different refactors
This commit is contained in:
@ -47,10 +47,14 @@ final class Container
|
||||
|
||||
/**
|
||||
* Adds the given instance to the container.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function add(string $id, object|string $instance): void
|
||||
public function add(string $id, object|string $instance): self
|
||||
{
|
||||
$this->instances[$id] = $instance;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user