You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error(sprintf('Passing a third argument to "%s()" is deprecated since Symfony 4.4, use method "all()" instead', __METHOD__), E_USER_DEPRECATED);
$this->assertEquals([], $bag->all('none'), '->get unknown values returns an empty array');
97
97
98
98
$bag->set('foo', 'bor', false);
99
99
$this->assertEquals('bar', $bag->get('foo'), '->get return first value');
100
-
$this->assertEquals(['bar', 'bor'], $bag->get('foo', 'nope', false), '->get return all values as array');
100
+
$this->assertEquals(['bar', 'bor'], $bag->all('foo'), '->get return all values as array');
101
+
}
102
+
103
+
/**
104
+
* @group legacy
105
+
* @expectedDeprecation Passing a third argument to "Symfony\Component\HttpFoundation\HeaderBag::get" is deprecated since Symfony 4.4, use method "all()" instead
0 commit comments