Skip to content

Commit 2de0734

Browse files
nicolas-grekasfabpot
authored andcommitted
[HttpFoundation] Deprecate HTTP method override for methods GET, HEAD, CONNECT and TRACE
1 parent 6e061ea commit 2de0734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Controller/ProfilerControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testOpeningDisallowedPaths($path, $isAllowed)
182182
$controller = new ProfilerController($urlGenerator, $profiler, $twig, [], null, __DIR__.'/../..');
183183

184184
try {
185-
$response = $controller->openAction(Request::create('/_wdt/open', Request::METHOD_GET, ['file' => $path]));
185+
$response = $controller->openAction(Request::create('/_wdt/open', 'GET', ['file' => $path]));
186186
$this->assertEquals(200, $response->getStatusCode());
187187
$this->assertTrue($isAllowed);
188188
} catch (NotFoundHttpException $e) {

0 commit comments

Comments
 (0)