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

PHPCSStandards / PHP_CodeSniffer / 7731966781 / 2
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: catch-per-3.0
DEFAULT BRANCH: master
Ran 31 Jan 2024 08:29PM UTC
Files 258
Run time 8s
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: 68.176%. First build
7731966781.2

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.

16356 of 23991 relevant lines covered (68.18%)

16.22 hits per line

Source Files on job php-7.2-custom-ini-false - 7731966781.2
  • Tree
  • List 258
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7731966781
  • 767d63a5 on github
  • Next Job for on 4.0 (#7733780599.2)
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