Skip to content

Commit

Permalink
Fix container trait
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Feb 13, 2021
1 parent 8f3b7b6 commit 10db2ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Traits/ContainerTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ protected function setContainerValue(string $name, $value): void
{
if (method_exists($this->container, 'set')) {
$this->container->set($name, $value);

return;
}

throw new BadMethodCallException('This DI container does not support this feature');
Expand Down

0 comments on commit 10db2ee

Please sign in to comment.