Skip to content

Commit

Permalink
minor #5403 [Contributing] [Standards] Added entry for identical comp…
Browse files Browse the repository at this point in the history
…arison (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
  • Loading branch information
xabbuh committed Jun 28, 2015
2 parents b839ce6 + bacd22e commit 5cbdabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contributing/code/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Structure

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

* Always use `identical comparison`_ unless you need type juggling;

* Add a comma after each array item in a multi-line array, even after the
last one;

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

0 comments on commit 5cbdabf

Please sign in to comment.