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

Squiz.Formatting.OperatorBracket.MissingBrackets error with static #2423

Closed
oprudkyi opened this issue Feb 15, 2019 · 1 comment
Closed

Squiz.Formatting.OperatorBracket.MissingBrackets error with static #2423

oprudkyi opened this issue Feb 15, 2019 · 1 comment
Milestone

Comments

@oprudkyi
Copy link

PHP_CodeSniffer version 3.4.0 (stable) by Squiz (http://www.squiz.net)

        $test = myfunc(1 * static::TEST);
        $test++;

throws "Operation must be bracketed" and expects

        $test = myfunc(1 * (static::TEST));

while

          $test = (1 * static::TEST);

is allowed

@gsherwood gsherwood added this to the 3.4.2 milestone Apr 3, 2019
gsherwood added a commit that referenced this issue Apr 3, 2019
@gsherwood
Copy link
Member

Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants