8000 minor #14776 Adding notes about deprecated warnings in 2.7 (weaverryan) · symfony/symfony@a78d939 · GitHub
[go: up one dir, main page]

Skip to content

Commit a78d939

Browse files
committed
minor #14776 Adding notes about deprecated warnings in 2.7 (weaverryan)
This PR was merged into the 2.7 branch. Discussion ---------- Adding notes about deprecated warnings in 2.7 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Hi guys! When I upgraded, my project exploded with deprecated warnings. I'm certain we'll get a lot of questions about these, so I think we should try to get ahead of these questions as much as possible. I'm adding this - if I'm mistaken in anything, please let me know. I also think we should mention this in the release blog post so that people are aware. I'm about to propose a short docs entry to explain things there too (so that hopefully if someone googles for the issue, they'll find our explanation). Thanks! Commits ------- e374274 Adding notes about deprecated warnings in 2.7
2 parents 2aeaa22 + e374274 commit a78d939

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

UPGRADE-2.7.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
UPGRADE FROM 2.6 to 2.7
22
=======================
33

4+
Global
5+
------
6+
7+
* `E_USER_DEPRECATED` warnings -
8+
`trigger_error('... is deprecated ...', E_USER_DEPRECATED)` -
9+
are now triggered when using all deprecated functionality.
10+
To avoid filling up error logs, you may need to add
11+
`~E_USER_DEPRECATED` to your `error_reporting` setting in
12+
`php.ini` to *not* add these errors to your log.
13+
14+
In the Symfony Framework, `~E_USER_DEPRECATED` is added to
15+
`bootstrap.php.cache` automatically, but you need at least
16+
version `2.3.14` or `3.0.21` of the
17+
[SensioDistributionBundle](https://github.com/sensiolabs/SensioDistributionBundle).
18+
So, you may need to upgrade:
19+
20+
```bash
21+
composer update sensio/distribution-bundle
22+
```
23+
24+
The [phpunit-bridge](https://github.com/symfony/phpunit-bridge)
25+
was introduced to silence deprecation warnings while running your
26+
tests and give you a report of deprecated function calls.
27+
428
Router
529
------
630

0 commit comments

Comments
 (0)
0