Skip to content

Commit

Permalink
Patch isAllowed param issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Oct 25, 2023
1 parent 7322475 commit 64be208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pop.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ public function hasRoute(string $method, string $route): bool
/**
* Determine if the route is allowed on for the method
*
* @param string $route
* @param ?string $route
* @return bool
*/
public function isAllowed(string $route): bool
public function isAllowed(?string $route = null): bool
{
$allowed = false;
$method = strtolower($_SERVER['REQUEST_METHOD']);
Expand Down

0 comments on commit 64be208

Please sign in to comment.