Skip to content

Commit

Permalink
[Routing] Fix changelog & deprecation message for #46042
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Apr 21, 2022
1 parent 6d18b11 commit 67f8e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions CHANGELOG.md
@@ -1,12 +1,6 @@
CHANGELOG
=========

6.2
---

* Add `params` variable to condition expression
* Deprecate not passing route parameters as the fourth argument to `UrlMatcher::handleRouteRequirements()`

6.1
---

Expand All @@ -16,6 +10,8 @@ CHANGELOG
* Already encoded slashes are not decoded nor double-encoded anymore when generating URLs (query parameters)
* Add `EnumRequirement` to help generate route requirements from a `\BackedEnum`
* Add `Requirement`, a collection of universal regular-expression constants to use as route parameter requirements
* Add `params` variable to condition expression
* Deprecate not passing route parameters as the fourth argument to `UrlMatcher::handleRouteRequirements()`

5.3
---
Expand Down
2 changes: 1 addition & 1 deletion Matcher/UrlMatcher.php
Expand Up @@ -225,7 +225,7 @@ protected function getAttributes(Route $route, string $name, array $attributes):
protected function handleRouteRequirements(string $pathinfo, string $name, Route $route/*, array $routeParameters*/): array
{
if (\func_num_args() < 4) {
trigger_deprecation('symfony/routing', '6.2', 'The "%s()" method will have a new "array $routeParameters" argument in version 7.0, not defining it is deprecated.', __METHOD__);
trigger_deprecation('symfony/routing', '6.1', 'The "%s()" method will have a new "array $routeParameters" argument in version 7.0, not defining it is deprecated.', __METHOD__);
$routeParameters = [];
} else {
$routeParameters = func_get_arg(3);
Expand Down

0 comments on commit 67f8e56

Please sign in to comment.