This commit is contained in:
2023-04-24 21:42:57 +08:00
parent 702bb08bd6
commit 25a0106603
+3
View File
@@ -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);
}