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

PHPCSStandards / PHP_CodeSniffer / 7751527110
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/fixer-conflict/PSR12.Functions.ReturnTypeDeclaration
DEFAULT BRANCH: master
Ran 02 Feb 2024 04:49AM UTC
Jobs 3
Files 258
Run time 1min
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

02 Feb 2024 04:46AM UTC coverage: 71.981% (+0.01%) from 71.971%
7751527110

push

github

jrfnl
PHP 8.3 | Tokenizer/PHP: add support for readonly anonymous classes

PHP 8.3 introduced readonly anonymous classes, fixing an oversight in the PHP 8.2 introduction of readonly classes.

As things were, for PHP 8.1+, the tokenizer would change the token code for the `readonly` keyword from `T_READONLY` to `T_STRING` in the "context sensitive keyword" layer, thinking it to be a class name.

And for PHP < 8.1, the readonly polyfill would ignore the token as it being preceded by the `new` keyword would be seen as conflicting with the "context sensitive keyword" layer, which meant it would not be re-tokenized from `T_STRING` to `T_READONLY`.

This commit fixes both.

Includes adding tests in a number of pre-existing test classes to cover this change.

17151 of 23827 relevant lines covered (71.98%)

48.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.1-custom-ini-true - 7751527110.1 02 Feb 2024 04:49AM UTC 258
70.49
GitHub Action Run
2 php-8.3-custom-ini-false - 7751527110.2 02 Feb 2024 04:49AM UTC 258
70.46
GitHub Action Run
3 php-7.2-custom-ini-false - 7751527110.3 02 Feb 2024 04:50AM UTC 258
68.15
GitHub Action Run
Source Files on build 7751527110
  • Tree
  • List 258
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7751527110
  • a580f7db on github
  • Prev Build on 4.0 (#7751189043)
  • Next Build on 4.0 (#7751687178)
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