We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 968d04f + f3932f5 commit 99d701eCopy full SHA for 99d701e
src/Bramus/Router/Router.php
@@ -291,6 +291,8 @@ public function run($callback = null)
291
if ($numHandled === 0) {
292
if (isset($this->afterRoutes[$this->requestedMethod])) {
293
$this->trigger404($this->afterRoutes[$this->requestedMethod]);
294
+ } else {
295
+ $this->trigger404();
296
}
297
} // If a route was handled, perform the finish callback (if any)
298
elseif ($callback && is_callable($callback)) {
0 commit comments