10000 Adding a new entry about deprecation warnings by weaverryan · Pull Request #5329 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Adding a new entry about deprecation warnings #5329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 29, 2015
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added a section about the framework
  • Loading branch information
weaverryan committed May 29, 2015
commit 060fe0340111718ba1874cac773749c1182c3a7f
23 changes: 21 additions & 2 deletions cookbook/upgrade/deprecation_warnings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,26 @@ How can I Silence the Warnings?

As useful as these are, you don't want them to show up while developing and
you may also want to silence them on production to avoid filling up your
error logs. To do that, add ``~E_USER_DEPRECATED`` to your ``error_reporting``
error logs.

In the Symfony Framework
~~~~~~~~~~~~~~~~~~~~~~~~

In the Symfony Framework, ``~E_USER_DEPRECATED`` is added to ``app/bootstrap.php.cache``
automatically, but you need at least version 2.3.14 or 3.0.21 of the
`SensioDistributionBundle`_. So, you may need to upgrade:

.. code-block:: bash

composer update sensio/distribution-bundle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing $ prefix

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!


Once you've updated, the ``bootstrap.php.cache`` file is rebuilt automatically.
At the top, you should see a line adding ``~E_USER_DEPRECATED``.

Outside of the Symfony Framework
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To do that, add ``~E_USER_DEPRECATED`` to your ``error_reporting``
setting in ``php.ini``:

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

.. _`phpunit-bridge`: https://github.com/symfony/phpunit-bridge

.. _`SensioDistributionBundle`: https://github.com/sensiolabs/SensioDistributionBundle
0