10BC0 Adding notes about deprecated warnings in 2.7 by weaverryan · Pull Request #14776 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions UPGRADE-2.7.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
UPGRADE FROM 2.6 to 2.7
=======================

Global
------

* `E_USER_DEPRECATED` warnings -
`trigger_error('... is deprecated ...', E_USER_DEPRECATED)` -
are now triggered when using all deprecated functionality.
To avoid filling up error logs, you may need to add
`~E_USER_DEPRECATED` to your `error_reporting` setting in
`php.ini` to *not* add these errors to your log.

In the Symfony Framework, `~E_USER_DEPRECATED` is added to
`bootstrap.php.cache` automatically, but you need at least
version `2.3.14` or `3.0.21` of the
[SensioDistributionBundle](https://github.com/sensiolabs/SensioDistributionBundle).
So, you may need to upgrade:

```bash
composer update sensio/distribution-bundle
```

The [phpunit-bridge](https://github.com/symfony/phpunit-bridge)
was introduced to silence deprecation warnings while running your
tests and give you a report of deprecated function calls.

Router
------

Expand Down
0