Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Universal.Operators.DisallowLogicalAndOr sniff #52

Merged
merged 1 commit into from
Apr 16, 2020

Commits on Apr 16, 2020

  1. ✨ New Universal.Operators.DisallowLogicalAndOr sniff

    New sniff to enforce the use of the boolean `&&` and `||` operators instead of the logical `and`/`or` operators.
    
    Note: as the [operator precedence](https://www.php.net/manual/en/language.operators.precedence.php) of the logical operators is significantly lower than the operator precedence of boolean operators, this sniff does not contain an auto-fixer.
    
    Includes unit tests.
    Includes documentation.
    Includes metrics.
    jrfnl committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    9c5441f View commit details
    Browse the repository at this point in the history