Ran
|
Files
97
|
Run time
4s
|
Badge
Embed ▾
README BADGES
|
travis-ci
:sparkles: PHP 7.4/8.0: new ChangedConcatOperatorPrecedence sniff As of PHP 8.0, the operator precedence of concatenation will be lowered, with deprecation notices being thrown as of PHP 7.4 for unparenthesized expressions containing an '.' before a '+' or '-'. Refs: * https://wiki.php.net/rfc/concatenation_precedence * https://github.com/php/php-src/commit/3b23694aa (PHP 7.4 deprecation) * https://github.com/php/php-src/commit/61ee86992 (PHP 8.0 precedence change) Notes: - I've not been able to come up with a valid unit test which would involve `&` as a reference, but I suspect this should be accounted for all the same, so the sniff does account for it. **NOTE**: the name of the sniff does not comply with the "normal" naming pattern, but I'm not sure what would be a more appropriate name `ForbiddenConcatBeforePlusMinusWithoutParenthesis` seems a bit overly long, just as `RemovedConcatPrecedenceSameAsPlusMinus`. Ideas welcome.
4390 of 4815 relevant lines covered (91.17%)
6.59 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|