This commit is contained in:
xl
2023-11-22 10:35:50 +08:00
parent 576e1c3ad8
commit 95b0822822
3 changed files with 41 additions and 5 deletions
+1
View File
@@ -146,6 +146,7 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate
if ($value instanceof RequestMethod) {
$value = $value->getString();
}
$handler->setRequestMethod($value);
if (is_array($closure)) {
$closure[0] = is_object($closure[0]) ? get_class($closure[0]) : $closure;
} else if (is_string($closure)) {