Skip to content

plug rules for static methods #3864

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

Closed
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
5 changes: 4 additions & 1 deletion contributing/code/bc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ your overridden method wouldn't match anymore and generate a fatal error.
.. note::

As with interfaces, we limit ourselves to changes that can be upgraded
easily. We will document the precise ugprade instructions in the UPGRADE
easily. We will document the precise upgrade instructions in the UPGRADE
file in Symfony's root directory.

In some cases, only specific properties and methods are tagged with the ``@api``
Expand Down Expand Up @@ -307,6 +307,9 @@ Add type hint to an argument Yes Yes
Remove type hint of an argument Yes Yes
Change argument type Yes Yes
Change return type Yes Yes
**Static Methods**
Turn non static into static No No
Turn static into non static No No
================================================== ============== ==============

.. [1] Your code may be broken by changes in the Symfony code. Such changes will
Expand Down