File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ - Always remove trailing whitespace
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ Add constructor without mandatory arguments Yes
264
264
Add argument with a default value Yes :ref: `[11] <note-11 >`
265
265
Remove argument No :ref: `[3] <note-3 >`
266
266
Add default value to an argument Yes
267
+ Change default value of an argument No :ref: `[12] <note-12 >`
267
268
Remove default value of an argument No
268
269
Add type hint to an argument No
269
270
Remove type hint of an argument Yes
@@ -490,6 +491,11 @@ code when upgrading to newer Symfony versions.
490
491
491
492
**[11] ** Only optional argument(s) of a constructor at last position may be added.
492
493
494
+ .. _note-12 :
495
+
496
+ **[12] ** Changing a default value is a BC break because it changes the behavior
497
+ of existing code that relies on the current default value.
498
+
493
499
Making Code Changes in a Backward Compatible Way
494
500
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495
501
You can’t perform that action at this time.
0 commit comments