diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcher.php b/src/Symfony/Component/HttpFoundation/RequestMatcher.php index 917be228d1..098d24d8f4 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcher.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcher.php @@ -70,13 +70,7 @@ class RequestMatcher implements RequestMatcherInterface */ public function matchMethod($method) { - $this->methods = array_map( - function ($m) - { - return strtolower($m); - }, - is_array($method) ? $method : array($method) - ); + $this->methods = array_map('strtolower', is_array($method) ? $method : array($method)); } /**