diff --git a/src/ReflectionContainer.php b/src/ReflectionContainer.php index 02223a8..c6d9222 100644 --- a/src/ReflectionContainer.php +++ b/src/ReflectionContainer.php @@ -61,6 +61,10 @@ public function call(callable $callable, array $args = []) } if (is_array($callable)) { + if (is_string($callable[0])) { + $callable[0] = $this->getContainer()->get($callable[0]); + } + $reflection = new ReflectionMethod($callable[0], $callable[1]); if ($reflection->isStatic()) {