Skip to content

Commit a3c287a

Browse files
committed
minor #14566 Document named arguments BC policy (wouterj)
This PR was merged into the 4.4 branch. Discussion ---------- Document named arguments BC policy Commits ------- 035335c Document named arguments BC policy
2 parents de14289 + 035335c commit a3c287a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

contributing/code/bc.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ backward compatibility promise:
7272
+-----------------------------------------------+-----------------------------+
7373
| Type hint against the interface | Yes |
7474
+-----------------------------------------------+-----------------------------+
75-
| Call a method | Yes |
75+
| Call a method | Yes [10]_ |
7676
+-----------------------------------------------+-----------------------------+
7777
| **If you implement the interface and...** | **Then we guarantee BC...** |
7878
+-----------------------------------------------+-----------------------------+
@@ -114,13 +114,13 @@ covered by our backward compatibility promise:
114114
+-----------------------------------------------+-----------------------------+
115115
| Access a public property | Yes |
116116
+-----------------------------------------------+-----------------------------+
117-
| Call a public method | Yes |
117+
| Call a public method | Yes [10]_ |
118118
+-----------------------------------------------+-----------------------------+
119119
| **If you extend the class and...** | **Then we guarantee BC...** |
120120
+-----------------------------------------------+-----------------------------+
121121
| Access a protected property | Yes |
122122
+-----------------------------------------------+-----------------------------+
123-
| Call a protected method | Yes |
123+
| Call a protected method | Yes [10]_ |
124124
+-----------------------------------------------+-----------------------------+
125125
| Override a public property | Yes |
126126
+-----------------------------------------------+-----------------------------+
@@ -445,4 +445,8 @@ Turn static into non static No
445445
446446
.. [9] Allowed for the ``void`` return type.
447447
448+
.. [10] Parameter names are not part of the compatibility promise. Using
449+
PHP 8's named arguments feature might break your code when upgrading to
450+
newer Symfony versions.
451+
448452
.. _`Semantic Versioning`: https://semver.org/

0 commit comments

Comments
 (0)