diff --git a/src/ControllerInterpreter.php b/src/ControllerInterpreter.php index a4115ea..230652c 100644 --- a/src/ControllerInterpreter.php +++ b/src/ControllerInterpreter.php @@ -74,6 +74,9 @@ class ControllerInterpreter */ public function resolveMethod(object $class, string|\ReflectionMethod $reflectionMethod, ReflectionClass $reflectionClass): Handler { + if (empty($reflectionMethod)) { + return new Handler([$class, $reflectionMethod], []); + } if (is_string($reflectionMethod)) { $reflectionMethod = $reflectionClass->getMethod($reflectionMethod); }