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

php-parallel-lint / PHP-Console-Highlighter / 17709400222 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2025 09:38AM UTC
Files 1
Run time 0s
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 2025 09:36AM UTC coverage: 97.5%. Remained the same
17709400222.1

push

github

grogy
PHP 8.5 | Tests: prevent deprecation notice for Reflection*::setAccessible()

Since PHP 8.1, calling the `Reflection*::setAccessible()` methods is no longer necessary as reflected properties/methods/etc will always be accessible.
However, the method calls are still needed for PHP < 8.1.

As of PHP 8.5, calling the `Reflection*::setAccessible()` methods is now formally deprecated and will yield a deprecation notice, which will fail test runs.
As of PHP 9.0, the `setAccessible()` method(s) will be removed.

With the latter in mind, this commit prevents the deprecation notice by making the calls to `setAccessible()` conditional.

Silencing the deprecation would mean, this would need to be "fixed" again come PHP 9.0, while the current solution should be stable, including for PHP 9.0.

Ref: https://wiki.php.net/rfc/deprecations_php_8_5#extreflection_deprecations

117 of 120 relevant lines covered (97.5%)

17.55 hits per line

Source Files on job php-5.3 - 17709400222.1
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17709400222
  • 68cf19ba on github
  • Prev Job for on master (#17709258775.1)
  • Next Job for on master (#17709450515.2)
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