[Routing] fix typo

This commit is contained in:
Nicolas Grekas 2018-02-10 11:55:44 +01:00
parent 05a045268f
commit ed42760b41
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class ProjectUrlMatcher extends Symfony\Component\Routing\Matcher\UrlMatcher
not_get_and_head:
// post_and_head
if ('/post_and_get' === $pathinfo) {
if ('/post_and_head' === $pathinfo) {
if (!in_array($requestMethod, array('POST', 'HEAD'))) {
$allow = array_merge($allow, array('POST', 'HEAD'));
goto not_post_and_head;

View File

@ -354,7 +354,7 @@ class PhpMatcherDumperTest extends TestCase
array('GET', 'HEAD')
));
$headMatchCasesCollection->add('post_and_head', new Route(
'/post_and_get',
'/post_and_head',
array(),
array(),
array(),