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.
1 parent cc47bc9 commit 36fe0b5Copy full SHA for 36fe0b5
src/GuahanWeb/Http/router.php
@@ -77,7 +77,7 @@ public function route($method, $route, $handler) {
77
foreach ($this->supported_methods as $m) {
78
$this->route($m, $route, $handler);
79
}
80
- } elseif (in_array($method, strtoupper($this->supported_methods))) {
+ } elseif (in_array(strtoupper($method), $this->supported_methods)) {
81
$this->routes[strtoupper($method)][$route] = $handler;
82
} else {
83
throw new RouterException(sprintf('Unsupported HTTP verb provided for route: %s', $method));
0 commit comments