Skip to content
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
@justinwray

Description

@justinwray

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions