Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generic/ScopeIndent: minor bug fix (undefined array index)
While looking at issue 3362 in an attempt to debug it, binarykitten and me came across a `An error occurred during processing; checking has been aborted. The error message was: Undefined array key "" in /src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php on line 646 (Internal.Exception)` error notice. While this will probably only occur in exceptional circumstances, it was caused by an operator precedence issue in the scope closer check condition. Adding the extra parentheses fixes the operator precedence snafu and prevents the above error notice. Note: this does not fix 3362, but still, is one less bug to worry about ;-)
- Loading branch information