Skip to content

Commit

Permalink
(FIX) [Tour]{Routing} Fixed error on getting 'path' from parse_url
Browse files Browse the repository at this point in the history
  • Loading branch information
JIbayMcs committed Sep 14, 2023
1 parent 605305d commit 48d246d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tour/Traits/CanConstructRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public function getRoute($class): array|false|int|null|string
}
}
} else {
$this->route = parse_url($instance->getUrl())['path'];
$this->route = parse_url($instance->getUrl())['path'] ?? '/';
}

}

return $this->route;
Expand Down

0 comments on commit 48d246d

Please sign in to comment.