Skip to content

Commit ba4d6d4

Browse files
committed
minor #26225 Make deprecation notices less verbose (fabpot)
This PR was merged into the 4.1-dev branch. Discussion ---------- Make deprecation notices less verbose | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a I think there is no need to say that deprecated features will be removed in the next major version. That makes messages more verbose for no real reasons. Commits ------- 0c6ec3fec0 made deprecation notices less verbose
2 parents 1adc468 + 64ae05d commit ba4d6d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ CHANGELOG
88
* Added a new `parameter_bag` service with related autowiring aliases to access parameters as-a-service
99
* Allowed the `Router` to work with any PSR-11 container
1010
* Added option in workflow dump command to label graph with a custom label
11-
* Using a `RouterInterface` that does not implement the `WarmableInterface` is deprecated and will not be supported in Symfony 5.0.
12-
* The `RequestDataCollector` class has been deprecated and will be removed in Symfony 5.0. Use the `Symfony\Component\HttpKernel\DataCollector\RequestDataCollector` class instead.
11+
* Using a `RouterInterface` that does not implement the `WarmableInterface` is deprecated.
12+
* The `RequestDataCollector` class has been deprecated. Use the `Symfony\Component\HttpKernel\DataCollector\RequestDataCollector` class instead.
1313
* The `RedirectController` class allows for 307/308 HTTP status codes
1414

1515
4.0.0

DataCollector/RequestDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
use Symfony\Component\HttpKernel\DataCollector\RequestDataCollector as BaseRequestDataCollector;
1515

16-
@trigger_error(sprintf('The "%s" class is deprecated since version 4.1 and will be removed in Symfony 5.0. Use %s instead.', RequestDataCollector::class, BaseRequestDataCollector::class), E_USER_DEPRECATED);
16+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.1. Use %s instead.', RequestDataCollector::class, BaseRequestDataCollector::class), E_USER_DEPRECATED);
1717

1818
/**
1919
* RequestDataCollector.
2020
*
2121
* @author Jules Pietri <[email protected]>
2222
*
23-
* @deprecated since version 4.1, to be removed in Symfony 5.0
23+
* @deprecated since Symfony 4.1
2424
*/
2525
class RequestDataCollector extends BaseRequestDataCollector
2626
{

Resources/config/session.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</service>
7171

7272
<service id="session.save_listener" class="Symfony\Component\HttpKernel\EventListener\SaveSessionListener">
73-
<deprecated>The "%service_id%" service is deprecated since Symfony 4.1 and will be removed in 5.0. Use the "session_listener" service instead.</deprecated>
73+
<deprecated>The "%service_id%" service is deprecated since Symfony 4.1. Use the "session_listener" service instead.</deprecated>
7474
</service>
7575

7676
<!-- for BC -->

0 commit comments

Comments
 (0)