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

PHPCSStandards / PHP_CodeSniffer / 13349728482
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 15 Feb 2025 11:56PM UTC
Jobs 8
Files 262
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

15 Feb 2025 11:54PM UTC coverage: 77.327% (+0.004%) from 77.323%
13349728482

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.

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

19181 of 24805 relevant lines covered (77.33%)

76.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os-windows-latest-php-8.4-custom-ini-false - 13349728482.1 15 Feb 2025 11:56PM UTC 262
2.77
GitHub Action Run
2 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13349728482.2 16 Feb 2025 12:03AM UTC 262
0.81
GitHub Action Run
3 os-windows-latest-php-7.2-custom-ini-false - 13349728482.3 15 Feb 2025 11:56PM UTC 262
2.21
GitHub Action Run
4 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13349728482.4 16 Feb 2025 12:01AM UTC 262
1.89
GitHub Action Run
5 os-ubuntu-latest-php-8.1-custom-ini-true - 13349728482.5 16 Feb 2025 12:01AM UTC 262
75.84
GitHub Action Run
6 os-ubuntu-latest-php-8.4-custom-ini-false - 13349728482.6 16 Feb 2025 12:01AM UTC 262
75.83
GitHub Action Run
7 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 13349728482.7 16 Feb 2025 12:01AM UTC 262
1.9
GitHub Action Run
8 os-ubuntu-latest-php-7.2-custom-ini-false - 13349728482.8 16 Feb 2025 12:03AM UTC 262
73.66
GitHub Action Run
Source Files on build 13349728482
  • Tree
  • List 262
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13349728482
  • 5fc33cc5 on github
  • Prev Build on 4.0 (#13349711403)
  • Next Build on 4.0 (#13381613036)
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