diff --git a/src/Traits/ContainerTestTrait.php b/src/Traits/ContainerTestTrait.php index 6927a5e..635afc2 100644 --- a/src/Traits/ContainerTestTrait.php +++ b/src/Traits/ContainerTestTrait.php @@ -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');