• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHP_CodeSniffer / 7731966781
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: catch-per-3.0
DEFAULT BRANCH: master
Ran 31 Jan 2024 08:28PM UTC
Jobs 3
Files 258
Run time 43s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jan 2024 08:24PM UTC coverage: 71.983%. First build
7731966781

push

github

jrfnl
Generic/LowerCaseType: bug fix in intersection type ignore code

PR squizlabs/PHP_CodeSniffer 3581 introduced support for PHP 8.1 intersection types.
_Note: the sniff, or PHPCS itself for that matter, currently does not (yet) support PHP 8.2 DNF types. Once support for DNF types has been added, this sniff will need a further update/fix.

For now, for the purpose of this sniff, intersection types should be skipped as they cannot contain the simple types for which the case is being checked by this sniff.

However, the check for whether a type is an intersection type or not was wrong.
The `'*type_token'` key for each of these checks contains the stack pointer to the _first_ token in the type declaration, so the comparison with `T_TYPE_INTERSECTION` will always yield `false`.

This did not lead to false positives due to how the type is handled after that, but is still a bug which should be fixed.

17142 of 23814 relevant lines covered (71.98%)

48.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.1-custom-ini-true - 7731966781.1 31 Jan 2024 08:28PM UTC 258
70.49
GitHub Action Run
2 php-7.2-custom-ini-false - 7731966781.2 31 Jan 2024 08:29PM UTC 258
68.18
GitHub Action Run
3 php-8.3-custom-ini-false - 7731966781.3 31 Jan 2024 08:28PM UTC 258
70.46
GitHub Action Run
Source Files on build 7731966781
  • Tree
  • List 258
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7731966781
  • 767d63a5 on github
  • Prev Build on 4.0 (#7731937059)
  • Next Build on 4.0 (#7733780599)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc