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

PHPCSStandards / PHP_CodeSniffer / 30766473066
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 02 Aug 2026 08:50PM UTC
Jobs 8
Files 265
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 Aug 2026 08:49PM UTC coverage: 78.983%. Remained the same
30766473066

push

github

web-flow
Tokenizer/PHP: fix "Undefined array key" warning during live coding (#1461)

As things were, during live coding it would be possible for the code handling typed constants - as introduced in #321 - to throw an "Undefined array key" warning.

This would happen in live coding situations, when the constant name is the last non-empty token in the file. In that case, the `for` loop ends via its `$i < $numTokens` condition with `$i` equal to `$numTokens`. The following `$tokens[$i] === '='` check then reads an index that does not exist, which triggers the "Undefined array key" error.

Fixed now.

Includes a test which would fail on the warning being thrown without the fix.

Co-authored-by: Sai Asish Y <say.apm35@gmail.com>

1 of 1 new or added line in 1 file covered. (100.0%)

19891 of 25184 relevant lines covered (78.98%)

99.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os-windows-latest-php-8.5-custom-ini-false - 30766473066.1 02 Aug 2026 08:50PM UTC 265
2.68
GitHub Action Run
2 os-ubuntu-latest-php-7.2-custom-ini-false - 30766473066.2 02 Aug 2026 08:55PM UTC 265
75.86
GitHub Action Run
3 cbf-os-ubuntu-latest-php-8.5-custom-ini-false - 30766473066.3 02 Aug 2026 08:53PM UTC 265
2.33
GitHub Action Run
4 cbf-os-ubuntu-latest-php-7.2-custom-ini-false - 30766473066.4 02 Aug 2026 08:55PM UTC 265
1.3
GitHub Action Run
5 os-ubuntu-latest-php-8.5-custom-ini-false - 30766473066.5 02 Aug 2026 08:53PM UTC 265
76.67
GitHub Action Run
6 os-ubuntu-latest-php-8.5-custom-ini-true - 30766473066.6 02 Aug 2026 08:52PM UTC 265
76.57
GitHub Action Run
7 os-windows-latest-php-7.2-custom-ini-false - 30766473066.7 02 Aug 2026 08:50PM UTC 265
2.13
GitHub Action Run
8 cbf-os-ubuntu-latest-php-8.5-custom-ini-true - 30766473066.8 02 Aug 2026 08:52PM UTC 265
2.33
GitHub Action Run
Source Files on build 30766473066
  • Tree
  • List 265
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30766473066
  • 5c400895 on github
  • Prev Build on 4.x (#30756320523)
  • Next Build on 4.x (#30766858474)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc