Hi,
the DisallowImplicitLooseComparisonSniff does not detect this case:
if (in_array($str, ['a', 'b', 'c'])) {
}
Because something goes wrong when counting the nested parentheses inside AbstractFunctionCallSniff. I'm not able to fix this, mainly because these sniffs do not have any tests and I'm afraid I'd break something :(
Hi, the DisallowImplicitLooseComparisonSniff does not detect this case:
Because something goes wrong when counting the nested parentheses inside AbstractFunctionCallSniff. I'm not able to fix this, mainly because these sniffs do not have any tests and I'm afraid I'd break something :(