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
feature #16629 [HttpFoundation] Remove deprecated class method parameter (belka-ew)
This PR was merged into the 3.0-dev branch.
Discussion
----------
[HttpFoundation] Remove deprecated class method parameter
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | yes
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
$deep argument in Symfony\Component\HttpFoundation\BagParameter::get was deprecated in 2.8 and removed in master, but it is still used in the code of the class (and in the filter() method)
Commits
-------
4ffe14c [HttpFoundation] Remove deprecated class method parameter
if (is_bool($filter) || !isset($filters[$filter]) || is_array($deep)) {
220
-
@trigger_error('Passing the $deep boolean as 3rd argument to the '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Remove it altogether as the $deep argument will be removed in 3.0.', E_USER_ERROR);
221
-
$tmp = $deep;
222
-
$deep = $filter;
223
-
$filter = $options;
224
-
$options = $tmp;
225
-
}
226
-
227
-
$value = $this->get($key, $default, $deep);
206
+
$value = $this->get($key, $default);
228
207
229
208
// Always turn $options into an array - this allows filter_var option shortcuts.
0 commit comments