Skip to content

Commit 5cbdabf

Browse files
committed
minor #5403 [Contributing] [Standards] Added entry for identical comparison (phansys)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #5403). Discussion ---------- [Contributing] [Standards] Added entry for identical comparison | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.8+ | Fixed tickets | Commits ------- bacd22e [Contributing] [Standards] Added entry for identical comparison
2 parents b839ce6 + bacd22e commit 5cbdabf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Structure
100100

101101
* Place unary operators (``!``, ``--``, ...) adjacent to the affected variable;
102102

103+
* Always use `identical comparison`_ unless you need type juggling;
104+
103105
* Add a comma after each array item in a multi-line array, even after the
104106
last one;
105107

@@ -186,3 +188,4 @@ License
186188
.. _`PSR-1`: http://www.php-fig.org/psr/psr-1/
187189
.. _`PSR-2`: http://www.php-fig.org/psr/psr-2/
188190
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
191+
.. _`identical comparison`: https://php.net/manual/en/language.operators.comparison.php

0 commit comments

Comments
 (0)