Skip to content

Commit 67f8e56

Browse files
committed
[Routing] Fix changelog & deprecation message for #46042
1 parent 6d18b11 commit 67f8e56

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
CHANGELOG
22
=========
33

4-
6.2
5-
---
6-
7-
* Add `params` variable to condition expression
8-
* Deprecate not passing route parameters as the fourth argument to `UrlMatcher::handleRouteRequirements()`
9-
104
6.1
115
---
126

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

2016
5.3
2117
---

Matcher/UrlMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ protected function getAttributes(Route $route, string $name, array $attributes):
225225
protected function handleRouteRequirements(string $pathinfo, string $name, Route $route/*, array $routeParameters*/): array
226226
{
227227
if (\func_num_args() < 4) {
228-
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__);
228+
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__);
229229
$routeParameters = [];
230230
} else {
231231
$routeParameters = func_get_arg(3);

0 commit comments

Comments
 (0)