mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01: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