Loading src/ModalRouteHelper.php +2 −2 Original line number Diff line number Diff line Loading @@ -41,13 +41,13 @@ class ModalRouteHelper { /** * Check if route is configured to open in modal. * * @param string $route * @param string|null $route * The route to check. * * @return bool * True if route is configured to open in modal, false otherwise. */ public function routeHasModal(string $route): bool { public function routeHasModal(?string $route): bool { return in_array($route, $this->getRoutes(), TRUE); } Loading Loading
src/ModalRouteHelper.php +2 −2 Original line number Diff line number Diff line Loading @@ -41,13 +41,13 @@ class ModalRouteHelper { /** * Check if route is configured to open in modal. * * @param string $route * @param string|null $route * The route to check. * * @return bool * True if route is configured to open in modal, false otherwise. */ public function routeHasModal(string $route): bool { public function routeHasModal(?string $route): bool { return in_array($route, $this->getRoutes(), TRUE); } Loading