From e374274159e71258117748c9afd3f82b56e3cd8d Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 28 May 2015 20:32:00 -0400 Subject: [PATCH] Adding notes about deprecated warnings in 2.7 --- UPGRADE-2.7.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/UPGRADE-2.7.md b/UPGRADE-2.7.md index 3a9884d97d..519332155c 100644 --- a/UPGRADE-2.7.md +++ b/UPGRADE-2.7.md @@ -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 ------