Skip to content

Commit ace5d42

Browse files
committed
Handle Any route attribute properly
1 parent 8f5b696 commit ace5d42

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/Web/src/Routing/RouteHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public function getMatchScore(Request $request): float
8080
public function matches(Request $request): bool
8181
{
8282
$method = $request->getMethod();
83-
if (!$this->getHandledRequestMethods()->contains($method)) {
83+
$handledMethods = $this->getHandledRequestMethods();
84+
if (!$handledMethods->isEmpty() && !$handledMethods->contains($method)) {
8485
return false;
8586
}
8687

0 commit comments

Comments
 (0)