does anyone know why some developers (especially seen in the sources of Zend Framework 2) write the expected value before the actual value in comparisons?
Example:
if (true === $actualValue) { ... } instead of
if ($actualValue === true) { ... } This case is not defined in the PSR coding standard.
Note: There is a similar topic for c++ but without really helpful answers.
true = $actualValuethrows a parse error, while$actualValue = truedoesn't.