改名
This commit is contained in:
@@ -401,11 +401,8 @@ class Router extends HttpService implements RouterInterface
|
|||||||
*/
|
*/
|
||||||
public function tree_search(?array $explode): ?Node
|
public function tree_search(?array $explode): ?Node
|
||||||
{
|
{
|
||||||
if (empty($this->nodes)) {
|
$parent = $this->nodes[array_shift($explode)] ?? null;
|
||||||
return null;
|
if (is_null($parent)) {
|
||||||
}
|
|
||||||
$parent = $this->nodes[$explode] ?? null;
|
|
||||||
if (!($parent instanceof Node)) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
while ($value = array_shift($explode)) {
|
while ($value = array_shift($explode)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user