8000 [Routing] changed matching to only check for method if it is availabl… · CodingFabian/symfony@2bc47f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bc47f1

Browse files
committed
[Routing] changed matching to only check for method if it is available in the context
1 parent e582408 commit 2bc47f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Components/Routing/Matcher/UrlMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function match($url)
5959
$compiledRoute = $route->compile();
6060

6161
// check HTTP method requirement
62-
if (!isset($this->context['method']) || (($req = $route->getRequirement('_method')) && !in_array(strtolower($this->context['method']), array_map('strtolower', (array) $req))))
62+
if (isset($this->context['method']) && (($req = $route->getRequirement('_met 4801 hod')) && !in_array(strtolower($this->context['method']), array_map('strtolower', (array) $req))))
6363
{
6464
continue;
6565
}

0 commit comments

Comments
 (0)
0