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

PHPCSStandards / PHP_CodeSniffer / 13382066417
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 18 Feb 2025 02:33AM 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

18 Feb 2025 02:30AM UTC coverage: 77.333% (+0.006%) from 77.327%
13382066417

push

github

jrfnl
Generic/ConstructorName: more defensive coding

This sniff could throw the following fatal errors when it encountered parse errors/during live coding:

```
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in path/to/PHPCS/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php on line 83 in path/to/PHPCS/src/Runner.php on line 624

Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in path/to/PHPCS/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php on line 167 in path/to/PHPCS/src/Runner.php on line 624
```

Fixed now by adding more defensive coding.

Includes test safeguarding the fix.

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

19187 of 24811 relevant lines covered (77.33%)

76.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13382066417.1 18 Feb 2025 02:38AM UTC 262
0.81
GitHub Action Run
2 os-ubuntu-latest-php-7.2-custom-ini-false - 13382066417.2 18 Feb 2025 02:38AM UTC 262
73.67
GitHub Action Run
3 os-windows-latest-php-8.4-custom-ini-false - 13382066417.3 18 Feb 2025 02:33AM UTC 262
2.76
GitHub Action Run
4 os-ubuntu-latest-php-8.4-custom-ini-false - 13382066417.4 18 Feb 2025 02:36AM UTC 262
75.83
GitHub Action Run
5 os-windows-latest-php-7.2-custom-ini-false - 13382066417.5 18 Feb 2025 02:33AM UTC 262
2.21
GitHub Action Run
6 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 13382066417.6 18 Feb 2025 02:36AM UTC 262
1.9
GitHub Action Run
7 os-ubuntu-latest-php-8.1-custom-ini-true - 13382066417.7 18 Feb 2025 02:36AM UTC 262
75.85
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13382066417.8 18 Feb 2025 02:36AM UTC 262
1.89
GitHub Action Run
Source Files on build 13382066417
  • 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 #13382066417
  • 800f57c7 on github
  • Prev Build on 4.0 (#13381613036)
  • Next Build on 4.0 (#13394250079)
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