This commit is contained in:
2023-04-19 10:51:08 +08:00
parent d95e0709c9
commit a16bb3a19c
4 changed files with 4 additions and 25 deletions
+2 -1
View File
@@ -55,8 +55,9 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate
* @param array $method
* @param string $route
* @param string|array|Closure $closure
* @throws ReflectionException
*/
public function addRoute(array $method, string $route, string|array|Closure $closure)
public function addRoute(array $method, string $route, string|array|Closure $closure): void
{
try {
$route = $this->_splicing_routing($route);