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 33cd5ec commit 30beb8fCopy full SHA for 30beb8f
src/Route.php
@@ -79,15 +79,15 @@ public function getController(): array
79
return $this->controller;
80
}
81
82
- public function getVarsNames(): array
+ public function getMethods(): array
83
{
84
- preg_match_all('/{[^}]*}/', $this->path, $matches);
85
- return reset($matches) ?: [];
+ return $this->methods;
86
87
88
- public function getMethods(): array
+ public function getVarsNames(): array
89
90
- return $this->methods;
+ preg_match_all('/{[^}]*}/', $this->path, $matches);
+ return reset($matches) ?: [];
91
92
93
public function hasVars(): bool
0 commit comments