This commit is contained in:
as2252258@163.com
2021-08-31 01:14:17 +08:00
parent aa18b438d4
commit fb2e7943c7
+1 -1
View File
@@ -391,7 +391,7 @@ class Router extends HttpService implements RouterInterface
if (empty($this->nodes)) {
return null;
}
$parent = $this->nodes[array_shift($explode)];
$parent = $this->nodes[array_shift($explode)] ?? null;
if (!($parent instanceof Node)) {
return null;
}