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 committed Sep 12, 2023
1 parent 6da91b6 commit 22c0d82
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 22c0d82

Please sign in to comment.