Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb37826

Browse files
committed
[Routing] Fix changelog & deprecation message for #46042
1 parent d838f46 commit bb37826

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

UPGRADE-6.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ HttpKernel
3232

3333
* Deprecate StreamedResponseListener, it's not needed anymore
3434

35+
Routing
36+
-------
37+
38+
* Add argument `$routeParameters` to `UrlMatcher::handleRouteRequirements()`
39+
3540
Serializer
3641
----------
3742

UPGRADE-6.2.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Symfony/Component/Routing/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
---

src/Symfony/Component/Routing/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)