File tree 2 files changed +24
-25
lines changed
2 files changed +24
-25
lines changed Original file line number Diff line number Diff line change @@ -77,29 +77,6 @@ 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 is passed to "replaceXXX" it must throw an exception.
79
79
80
- .. _contributing-code-conventions-comparisons :
81
-
82
- Comparisons
83
- -----------
84
-
85
- Use `identical comparison `_ when the expected value must match a specific type:
86
-
87
- instead of:
88
-
89
- .. code-block :: php
90
-
91
- if (1 == $integerExpected) {
92
- // ...
93
- }
94
-
95
- it should be:
96
-
97
- .. code-block :: php
98
-
99
- if (1 === $integerExpected) {
100
- // ...
101
- }
102
-
103
80
.. _contributing-code-conventions-deprecations :
104
81
105
82
Deprecations
@@ -127,5 +104,3 @@ the migration starting one or two minor versions before the version where the
127
104
feature will be removed (depending on the criticality of the removal)::
128
105
129
106
trigger_error('XXX() is deprecated since version 2.X and will be removed in 2.Y. Use XXX instead.', E_USER_DEPRECATED);
130
-
131
- .. _`identical comparison` : https://php.net/manual/en/language.operators.comparison.php
Original file line number Diff line number Diff line change @@ -167,6 +167,29 @@ Service Naming Conventions
167
167
168
168
* A group name uses the underscore notation.
169
169
170
+ .. _contributing-code-standards-comparisons :
171
+
172
+ Comparisons
173
+ -----------
174
+
175
+ Use `identical comparison `_ when the expected value must match a specific type:
176
+
177
+ instead of:
178
+
179
+ .. code-block :: php
180
+
181
+ if (1 == $integerExpected) {
182
+ // ...
183
+ }
184
+
185
+ it should be:
186
+
187
+ .. code-block :: php
188
+
189
+ if (1 === $integerExpected) {
190
+ // ...
191
+ }
192
+
170
193
Documentation
171
194
-------------
172
195
@@ -186,3 +209,4 @@ License
186
209
.. _`PSR-1` : http://www.php-fig.org/psr/psr-1/
187
210
.. _`PSR-2` : http://www.php-fig.org/psr/psr-2/
188
211
.. _`PSR-4` : http://www.php-fig.org/psr/psr-4/
212
+ .. _`identical comparison` : https://php.net/manual/en/language.operators.comparison.php
You can’t perform that action at this time.
0 commit comments