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

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

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 16 Feb 2025 12:03AM UTC
Files 262
Run time 7s
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

15 Feb 2025 11:54PM UTC coverage: 0.815%. Remained the same
13349728482.2

push

github

jrfnl
File::getDeclarationName(): prevent incorrect result during live coding

The `function` keyword for a closure is normally tokenized as `T_CLOSURE`, but will be tokenized as `T_FUNCTION` in case of an unfinished closure declaration (no scope opener/closer).

For an unfinished closure with typed parameters, the `File::getDeclarationName()` method would incorrectly return the contents of the first `T_STRING` in the type declaration as if it were the name of the function.

Fixed now.

Includes test.

260 of 31921 relevant lines covered (0.81%)

0.01 hits per line

Source Files on job cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13349728482.2
  • Tree
  • List 262
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13349728482
  • 5fc33cc5 on github
  • Prev Job for on 4.0 (#13349711403.2)
  • Next Job for on 4.0 (#13381613036.4)
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