Skip to content

Commit

Permalink
ReflectionProperty: PHP < 8.1 needs explicit accessibility permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored and sebastianbergmann committed Sep 12, 2023
1 parent 6dbfc20 commit 2c9ee25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/tests/Report/PhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function testCacheDataNeverGetSaved(): void
$coverage->getReport();

$refProperty = new ReflectionProperty($coverage, 'cachedReport');
$refProperty->setAccessible(true);

$this->assertNotNull($refProperty->getValue($coverage));

Expand Down

0 comments on commit 2c9ee25

Please sign in to comment.