Skip to content

Commit 99d701e

Browse files
authored
Merge pull request bramus#201 from ilyafreer/ilyafreer-patch-404
Update Router.php
2 parents 968d04f + f3932f5 commit 99d701e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Bramus/Router/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ public function run($callback = null)
291291
if ($numHandled === 0) {
292292
if (isset($this->afterRoutes[$this->requestedMethod])) {
293293
$this->trigger404($this->afterRoutes[$this->requestedMethod]);
294+
} else {
295+
$this->trigger404();
294296
}
295297
} // If a route was handled, perform the finish callback (if any)
296298
elseif ($callback && is_callable($callback)) {

0 commit comments

Comments
 (0)