8000 also fix the test · symfony/symfony@de23ac8 · GitHub
[go: up one dir, main page]

Skip to content

Commit de23ac8

Browse files
committed
also fix the test
1 parent 30444a8 commit de23ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Tests/InputBagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function testSetWithNonScalarOrArrayIsDeprecated()
7272
/**
7373
* @group legacy
7474
*/
75-
public function testGettingANonStringValueIsDeprecated()
75+
public function testGettingANonScalarValueIsDeprecated()
7676
{
7777
$bag = new InputBag(['foo' => ['a', 'b']]);
78-
$this->expectDeprecation('Since symfony/http-foundation 5.1: Retrieving a non-string value from "Symfony\Component\HttpFoundation\InputBag::get()" is deprecated, and will throw a "Symfony\Component\HttpFoundation\Exception\BadRequestException" exception in Symfony 6.0, use "Symfony\Component\HttpFoundation\InputBag::all($key)" instead.');
78+
$this->expectDeprecation('Since symfony/http-foundation 5.1: Retrieving a non-scalar value from "Symfony\Component\HttpFoundation\InputBag::get()" is deprecated, and will throw a "Symfony\Component\HttpFoundation\Exception\BadRequestException" exception in Symfony 6.0, use "Symfony\Component\HttpFoundation\InputBag::all($key)" instead.');
7979
$bag->get('foo');
8080
}
8181

0 commit comments

Comments
 (0)
0