Ran
|
Files
97
|
Run time
8s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/<a class=hub.com/PHPCompatibility/PHPCompatibility/commit/<a class="double-link" href="https://git"><a class=hub.com/PHPCompatibility/PHPCompatibility/commit/6e3a78d1a42a90ff784022cbd66e3a8b963687fb">6e3a78d1a<a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/6e3a78d1a42a90ff784022cbd66e3a8b963687fb"><a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/6e3a78d1a42a90ff784022cbd66e3a8b963687fb">&quot;&gt;: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 &#39;.&#39; before a &#39;+&#39; or &#39;-&#39;. Refs: * https://wiki.php.net/rfc/concatenation_precedence * https://github.com/php/php-src/commit/</a><a class="double-link" href="https://github.com/PHPCompatibility/PHPCompatibility/commit/<a class="double-link" href="https://github.com/PHPCompatibility/PHPCompatibility/commit/3b23694aac62ad9c2dfdb60cafb304f9fc0b7c04">3b23694aa</a>">3b23694aa</a><a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/6e3a78d1a42a90ff784022cbd66e3a8b963687fb"> (PHP 7.4 deprecation) * https://github.com/php/php-src/commit/</a><a class="double-link" href="https://github.com/PHPCompatibility/PHPCompatibility/commit/<a class="double-link" href="https://github.com/PHPCompatibility/PHPCompatibility/commit/61ee86992120c6c160fa7637316e59397497be0d">61ee86992</a>">61ee86992</a><a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/6e3a78d1a42a90ff784022cbd66e3a8b963687fb"> (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.
4397 of 4806 relevant lines covered (91.49%)
5.19 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|