Ran
|
Jobs
4
|
Files
97
|
Run time
6min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/<a class=hub.com/PHPCompatibility/PHPCompatibility/commit/de823c97299f7dc8d4b992cc5cbcf1b158e4b92e">de823c972<a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/de823c97299f7dc8d4b992cc5cbcf1b158e4b92e">">:sparkles: PHP 7.4/8.0: new RemovedTernaryLeftAssociativity sniff PHP 7.4 deprecates nesting of ternaries without explicit use of parentheses. PHP 8.0 will remove the (left-)associativity of ternaries completely. This will become a compile-time error. Refs: * https://wiki.php.net/rfc/ternary_associativity * 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/09ea55cb4e733f4e5221dfff5b66d6feb9695613">09ea55cb4</a>">09ea55cb4</a><a href="https://github.com/PHPCompatibility/PHPCompatibility/commit/de823c97299f7dc8d4b992cc5cbcf1b158e4b92e"> (PHP 7.4 deprecation) * https://gist.github.com/nikic/b6214f87b0e4a7c6fe26919ac849194f Includes unit tests. To test this sniff, I have run it over some 300.000 files. While I can't say for sure whether there were any missed problem cases (false negatives), all the issues detected by the sniff were actual cases of nested ternaries which would become problematic in PHP 7.4/8.0. Related to 808
3645 of 3930 relevant lines covered (92.75%)
21.43 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
23 | 2303.23 (PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") | 97 |
90.45 |
Travis Job 2303.23 | |
24 | 2303.24 (PHPCS_VERSION="2.3.0" COVERALLS_VERSION="^2.0") | 97 |
90.14 |
Travis Job 2303.24 | |
25 | 2303.25 (PHPCS_VERSION="3.0.2" COVERALLS_VERSION="^2.0") | 97 |
91.36 |
Travis Job 2303.25 | |
26 | 2303.26 (PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") | 97 |
91.52 |
Travis Job 2303.26 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|