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

PHPCSStandards / PHPCSUtils / 169
97%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 22 Jan 2020 10:06PM UTC
Jobs 4
Files 15
Run time 3min
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

pending completion
169

Pull #45

travis-ci-com

web-flow
Operators::isReference(): fix compatibility with PHPCS 2.8.0 - 3.2.3

PHPCS 2.8.0 - 3.2.3 contained a bug where a square open bracket `[` as the first code content after the PHP open tag in a file would be tokenized as `T_OPEN_SQUARE_BRACKET` not `T_OPEN_SHORT_ARRAY`.

This is an edge-case bug as it can only occur when following the very first PHP open tag in a file and only if there is nothing before that open tag.

Either way, this commit adds work-arounds to the utility method to handle the situation correctly.

Ref: squizlabs/PHP_CodeSniffer 1971
Pull Request #45: Operators::isReference(): various improvements

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

1412 of 1454 relevant lines covered (97.11%)

58.74 hits per line

Jobs
ID Job ID Ran Files Coverage
29 169.29 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^2.0") 22 Jan 2020 10:06PM UTC 0
94.49
Travis Job 169.29
30 169.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 22 Jan 2020 10:06PM UTC 0
95.11
Travis Job 169.30
31 169.31 (LINT=1 PHPCS_VERSION="dev-master" COVERALLS_VERSION="^1.0") 22 Jan 2020 10:06PM UTC 0
93.49
Travis Job 169.31
32 169.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 22 Jan 2020 10:08PM UTC 0
93.9
Travis Job 169.32
Source Files on build 169
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #169
  • Pull Request #45
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