Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 17, 2020
1 parent 3e990e7 commit 41a4647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/InputBagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testFilterArray()
'foo' => ['12', '8'],
]);

$result = $bag->filter('foo', null, \FILTER_VALIDATE_INT, \FILTER_FORCE_ARRAY);
$result = $bag->filter('foo', null, FILTER_VALIDATE_INT, FILTER_FORCE_ARRAY);
$this->assertSame([12, 8], $result);
}

Expand Down Expand Up @@ -82,6 +82,6 @@ public function testFilterArrayWithoutArrayFlagIsDeprecated()
{
$bag = new InputBag(['foo' => ['bar', 'baz']]);
$this->expectDeprecation('Since symfony/http-foundation 5.1: Filtering an array value with "Symfony\Component\HttpFoundation\InputBag::filter()" without passing the FILTER_REQUIRE_ARRAY or FILTER_FORCE_ARRAY flag is deprecated');
$bag->filter('foo', \FILTER_VALIDATE_INT);
$bag->filter('foo', FILTER_VALIDATE_INT);
}
}

0 comments on commit 41a4647

Please sign in to comment.