Skip to content

Commit 060fe03

Browse files
committed
Added a section about the framework
1 parent 702394e commit 060fe03

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

cookbook/upgrade/deprecation_warnings.rst

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,26 @@ How can I Silence the Warnings?
2020

2121
As useful as these are, you don't want them to show up while developing and
2222
you may also want to silence them on production to avoid filling up your
23-
error logs. To do that, add ``~E_USER_DEPRECATED`` to your ``error_reporting``
23+
error logs.
24+
25+
In the Symfony Framework
26+
~~~~~~~~~~~~~~~~~~~~~~~~
27+
28+
In the Symfony Framework, ``~E_USER_DEPRECATED`` is added to ``app/bootstrap.php.cache``
29+
automatically, but you need at least version 2.3.14 or 3.0.21 of the
30+
`SensioDistributionBundle`_. So, you may need to upgrade:
31+
32+
.. code-block:: bash
33+
34+
composer update sensio/distribution-bundle
35+
36+
Once you've updated, the ``bootstrap.php.cache`` file is rebuilt automatically.
37+
At the top, you should see a line adding ``~E_USER_DEPRECATED``.
38+
39+
Outside of the Symfony Framework
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
42+
To do that, add ``~E_USER_DEPRECATED`` to your ``error_reporting``
2443
setting in ``php.ini``:
2544

2645
.. code-block:: ini
@@ -52,4 +71,4 @@ Once all the deprecation warnings are gone, you can upgrade with a lot
5271
more confidence.
5372

5473
.. _`phpunit-bridge`: https://github.com/symfony/phpunit-bridge
55-
74+
.. _`SensioDistributionBundle`: https://github.com/sensiolabs/SensioDistributionBundle

0 commit comments

Comments
 (0)