From 22c0d8251cccd9ebaf15ee67175222f2f19c54a9 Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Tue, 12 Sep 2023 16:26:21 +0200 Subject: [PATCH] ReflectionProperty: PHP < 8.1 needs explicit accessibility permission --- tests/tests/Report/PhpTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tests/Report/PhpTest.php b/tests/tests/Report/PhpTest.php index 733e739f4..75c11b4ba 100644 --- a/tests/tests/Report/PhpTest.php +++ b/tests/tests/Report/PhpTest.php @@ -53,6 +53,7 @@ public function testCacheDataNeverGetSaved(): void $coverage->getReport(); $refProperty = new ReflectionProperty($coverage, 'cachedReport'); + $refProperty->setAccessible(true); $this->assertNotNull($refProperty->getValue($coverage));