Skip to content

Commit bacd22e

Browse files
phansysxabbuh
authored andcommitted
[Contributing] [Standards] Added entry for identical comparison
1 parent b839ce6 commit bacd22e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/code/standards.rst

+3
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)