diff --git a/src/Container.php b/src/Container.php index 0ccb208..bdb77a2 100644 --- a/src/Container.php +++ b/src/Container.php @@ -256,7 +256,11 @@ public function extend(string $class, callable $extension): void $factories = $this->services[self::FACTORIES]; $extensions = $this->services[self::EXTENSIONS]; - if (! array_key_exists($class, $extensions) && ! array_key_exists($class, $factories) && ! class_exists($class)) { + if ( + ! array_key_exists($class, $extensions) + && ! array_key_exists($class, $factories) + && ! class_exists($class) + ) { throw new ServiceNotFoundException($class); }