diff --git a/src/Pimple/Tests/PimpleTest.php b/src/Pimple/Tests/PimpleTest.php index 40e87f4..d88ca6d 100644 --- a/src/Pimple/Tests/PimpleTest.php +++ b/src/Pimple/Tests/PimpleTest.php @@ -275,11 +275,15 @@ public function testExtendDoesNotLeakWithFactories() unset($pimple['foo']); $p = new \ReflectionProperty($pimple, 'values'); - $p->setAccessible(true); + if (PHP_VERSION < 80100) { + $p->setAccessible(true); + } $this->assertEmpty($p->getValue($pimple)); $p = new \ReflectionProperty($pimple, 'factories'); - $p->setAccessible(true); + if (PHP_VERSION < 80100) { + $p->setAccessible(true); + } $this->assertCount(0, $p->getValue($pimple)); }