diff --git a/src/Container.php b/src/Container.php index 3426afe..0e92090 100644 --- a/src/Container.php +++ b/src/Container.php @@ -7,7 +7,7 @@ * @author Muhammet ŞAFAK * @copyright Copyright © 2022 InitPHP Container * @license http://initphp.github.io/license.txt MIT - * @version 0.2 + * @version 0.3 * @link https://www.muhammetsafak.com.tr */ @@ -91,6 +91,7 @@ private function getDependencies(array $arguments, \ReflectionClass $reflection) if (($type = $argument->getType()) !== null) { if(!$type->isBuiltin()){ $dependencies[] = $this->get($type->getName()); + continue; } } }