File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ must be used instead (where ``XXX`` is the name of the related thing):
77
77
"replaceXXX", on the other hand, cannot add new elements. If an unrecognized
78
78
key as passed to "replaceXXX" it must throw an exception.
79
79
80
+ .. _contributing-code-conventions-deprecations :
81
+
80
82
Deprecations
81
83
------------
82
84
@@ -99,6 +101,9 @@ the feature was replaced.
99
101
100
102
A PHP ``E_USER_DEPRECATED `` error must also be triggered to help people with
101
103
the migration starting one or two minor versions before the version where the
102
- feature will be removed (depending of the criticality of the removal)::
104
+ feature will be removed (depending on the criticality of the removal)::
103
105
104
- trigger_error('XXX() is deprecated since version 2.X and will be removed in 2.Y. Use XXX instead.', E_USER_DEPRECATED);
106
+ trigger_error(
107
+ 'XXX() is deprecated since version 2.X and will be removed in 2.Y. Use XXX instead.',
108
+ E_USER_DEPRECATED
109
+ );
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ Deprecations
90
90
When a feature implementation cannot be replaced with a better one without
91
91
breaking backward compatibility, there is still the possibility to deprecate
92
92
the old implementation and add a new preferred one along side. Read the
93
- :doc : `conventions < ../ code/ conventions >` document to learn more about how
94
- deprecations are handled in Symfony.
93
+ :ref : `conventions<contributing- code- conventions-deprecations > ` document to
94
+ learn more about how deprecations are handled in Symfony.
95
95
96
96
Rationale
97
97
---------
You can’t perform that action at this time.
0 commit comments