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

PHPCSStandards / PHPCSUtils / 111 / 30
96%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/upload-pages-artifact-5.0.0
DEFAULT BRANCH: develop
Ran 22 Jan 2020 05:18AM UTC
Files 10
Run time 2s
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

22 Jan 2020 04:48AM UTC coverage: 92.789% (+0.09%) from 92.696%
PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0"

Pull #28

travis-ci-com

web-flow
ObjectDeclarations::getName(): improved handling of parse errors

While certain names may be invalid, such as construct names starting with a number, for the purpose of alerting users to these invalid names, the `getName()` method should be able to pick up on them.

The `getName()` method has now been adjusted to allow for such names.

The way this has been implemented also improves the parse error resilience for the `getName()` method.

The `getName()` method could previously inadvertently misidentify the name of a structure in the case of parse errors/live coding as it looked for the first `T_STRING` after the keyword without limiting it to the declaration statement. This has now also been fixed.

The method will now return `null`, both when passed  an anonymous class/function as well as in case of a parse error.

Included additional unit tests.
Pull Request #28: Objectdeclarations::getName(): various improvements

875 of 943 relevant lines covered (92.79%)

13.41 hits per line

Source Files on job 111.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 43
  • Travis Job 111.30
  • 85a894db on github
  • Prev Job for PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0" on feature/objectdeclarations-improve-getname (#109.30)
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