File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,14 @@ Make public or protected Yes
253253Remove private property Yes
254254**Constructors **
255255Add constructor without mandatory arguments Yes :ref: `[1] <note-1 >`
256+ :ref: `Add argument without a default value <add-argument-public-method >` No
257+ Add argument with a default value Yes :ref: `[11] <note-11 >`
258+ Remove argument No :ref: `[3] <note-3 >`
259+ Add default value to an argument Yes
260+ Remove default value of an argument No
261+ Add type hint to an argument No
262+ Remove type hint of an argument Yes
263+ Change argument type No
256264Remove constructor No
257265Reduce visibility of a public constructor No
258266Reduce visibility of a protected constructor No :ref: `[7] <note-7 >`
@@ -468,6 +476,10 @@ a return type is only possible with a child type.
468476constructors of Attribute classes. Using PHP named arguments might break your
469477code when upgrading to newer Symfony versions.
470478
479+ .. _note-11 :
480+
481+ **[11] ** Only optional argument(s) of a constructor at last position may be added.
482+
471483Making Code Changes in a Backward Compatible Way
472484~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
473485
You can’t perform that action at this time.
0 commit comments