We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f5b696 commit ace5d42Copy full SHA for ace5d42
1 file changed
modules/Web/src/Routing/RouteHandler.php
@@ -80,7 +80,8 @@ public function getMatchScore(Request $request): float
80
public function matches(Request $request): bool
81
{
82
$method = $request->getMethod();
83
- if (!$this->getHandledRequestMethods()->contains($method)) {
+ $handledMethods = $this->getHandledRequestMethods();
84
+ if (!$handledMethods->isEmpty() && !$handledMethods->contains($method)) {
85
return false;
86
}
87
0 commit comments