Does anyone know why some developers (especially in Zend Framework 2 sources) write the expected value to the actual value in comparison?
Example:
if (true === $actualValue) { ... }
instead
if ($actualValue === true) { ... }
This case is not defined in the PSR coding standard.
Note: There is a similar topic for C ++, but without very useful answers.
source share