Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jun 13, 2023
1 parent eac3eda commit 485da03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Router/AutoRouterImproved.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ public function getRoute(string $uri, string $httpVerb): array
'Cannot access the default method "' . $this->method . '" with the method name URI path.'
);
}
} elseif (method_exists($this->controller, $this->defaultMethod)) {
} elseif (method_exists($this->controller, $defaultMethod)) {
// The default method is found.
$this->method = $this->defaultMethod;
$this->method = $defaultMethod;
} else {
// No method is found.
throw PageNotFoundException::forControllerNotFound($this->controller, $method);
Expand Down

0 comments on commit 485da03

Please sign in to comment.