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

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

Build:
Build:
LAST BUILD BRANCH: feature/changelog-1.0.1
DEFAULT BRANCH: master
Ran 10 Aug 2025 03:25AM UTC
Files 1
Run time 1s
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

10 Aug 2025 03:23AM UTC coverage: 100.0%. Remained the same
16856728172.1

push

github

jrfnl
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

99 of 99 relevant lines covered (100.0%)

17.31 hits per line

Source Files on job php-8.4 - 16856728172.1
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16856728172
  • 9489d150 on github
  • Prev Job for on feature/fix-test-runtime-deprecations-php-8.5 (#11987032857.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