This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
Check for excessive brackets in conditions statements #578
Open
Description
From @fredemmott:
the typechecker takes it as a "i know what I'm doing" hint in some situations, e.g. when assigning in an if condition
Example:
if (($foo === true) && ($bar === false)) {
Versus:
if ($foo === true && $bar === false) {
A quick skim of the codebase show the less optimal conditions are in use a few dozen times (at least).