8000 [BC] Allow more changes when the class/method is final by GuilhemN · Pull Request #7611 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content
8000

[BC] Allow more changes when the class/method is final #7611

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
Oct 29, 2017
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
Improve notes
  • Loading branch information
GuilhemN committed Mar 15, 2017
commit f5b8dd452dcdabc9030618d1830fdab24b6ed69c
14 changes: 11 additions & 3 deletions contributing/code/bc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,17 @@ Change value of a constant Yes [1]_ [5]_

.. [6] Allowed using the ``@final`` annotation.

.. [7] Allowed if the class is final.

.. [8] Allowed if the method is final.
.. [7] Allowed if the class is final. Classes that received the ``@final``
annotation after their first release are considered final in their
next major version.
Changing an argument type is only possible with a parent type.
Changing a return type is only possible with a child type.

.. [8] Allowed if the method is final. Methods that received the ``@final``
annotation after their first release are considered final in their
next major version.
Changing an argument type is only possible with a parent type.
Changing a return type is only possible with a child type.

.. _Semantic Versioning: http://semver.org/
.. _scalar type: http://php.net/manual/en/function.is-scalar.php
Expand Down
0