8000 Adding notes about deprecated warnings in 2.7 · symfony/symfony@e374274 · GitHub
[go: up one dir, main page]

Skip to content

Commit e374274

Browse files
committed
Adding notes about deprecated warnings in 2.7
1 parent 2aeaa22 commit e374274

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