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

PHPCSStandards / PHP_CodeSniffer / 10861545082
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: PSR2-WrongOpenercase-with-colon-and-bracket-is-unclear
DEFAULT BRANCH: master
Ran 14 Sep 2024 10:08AM UTC
Jobs 3
Files 260
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

14 Sep 2024 10:04AM UTC coverage: 74.049% (+0.2%) from 73.857%
10861545082

push

github

jrfnl
Squiz/MultiLineFunctionDeclaration: bug fix - skip over attributes

The sniff looks for `T_COMMA` tokens to find the start of the next parameter and skips over parenthesis sets and square brackets sets (like short arrays) to prevent mismatching on a `T_COMMA` which is not a parameter separator.

This logic did not take parameter attributes into account, which can contain multiple comma-separated attributes, so should also be skipped over.

Fixed now. Includes plenty of tests.

Also includes minor stability fix for the parentheses/square brackets skipping.

Notes:
* It could be argued that the sniff should use the `File::getMethodParameters()` method to do the parameter parsing instead. This could be done in a future iteration, but will need to be evaluated carefully for side-effects.
* This sniff extends the PEAR `FunctionDeclaration` sniff. It has been verified that that sniff is not affected by this bug.

Fixes 608

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

17999 of 24307 relevant lines covered (74.05%)

71.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.1-custom-ini-true - 10861545082.1 14 Sep 2024 10:08AM UTC 0
72.44
GitHub Action Run
2 php-7.2-custom-ini-false - 10861545082.2 14 Sep 2024 10:10AM UTC 0
69.99
GitHub Action Run
3 php-8.3-custom-ini-false - 10861545082.3 14 Sep 2024 10:09AM UTC 0
72.4
GitHub Action Run
Source Files on build 10861545082
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10861545082
  • 5716c8c7 on github
  • Prev Build on 4.0 (#10668027371)
  • Next Build on 4.0 (#10861789063)
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