You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran phpcs and got the following error: [x] Arithmetic operation must be bracketed
So I ran phpcbf to auto-fix it, and it changed the code line from: $results = $stmt->fetchAll(\PDO::FETCH_ASSOC | \PDO::FETCH_GROUP | \PDO::FETCH_UNIQUE);
to a syntax error: $results = $stmt->fetchAll(\(PDO::FETCH_ASSOC | ) \(PDO::FETCH_GROUP | ) \PDO::FETCH_UNIQUE);
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
[bug] improper auto-fix arithmetic operation must be bracketed
Invalid Squiz.Formatting.OperatorBracket error when using namespaces
Feb 15, 2017
I ran
phpcs
and got the following error:[x] Arithmetic operation must be bracketed
So I ran
phpcbf
to auto-fix it, and it changed the code line from:$results = $stmt->fetchAll(\PDO::FETCH_ASSOC | \PDO::FETCH_GROUP | \PDO::FETCH_UNIQUE);
to a syntax error:
$results = $stmt->fetchAll(\(PDO::FETCH_ASSOC | ) \(PDO::FETCH_GROUP | ) \PDO::FETCH_UNIQUE);
The text was updated successfully, but these errors were encountered: