Skip to content

Commit

Permalink
Merge pull request #201 from ilyafreer/ilyafreer-patch-404
Browse files Browse the repository at this point in the history
Update Router.php
  • Loading branch information
uvulpos authored Jul 29, 2023
2 parents 968d04f + f3932f5 commit 99d701e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bramus/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ public function run($callback = null)
if ($numHandled === 0) {
if (isset($this->afterRoutes[$this->requestedMethod])) {
$this->trigger404($this->afterRoutes[$this->requestedMethod]);
} else {
$this->trigger404();
}
} // If a route was handled, perform the finish callback (if any)
elseif ($callback && is_callable($callback)) {
Expand Down

0 comments on commit 99d701e

Please sign in to comment.