From 533120c3ee3ec81ab48d7ea8be997077a7ddd762 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 3 Dec 2025 16:39:44 +0100 Subject: [PATCH] reflection methods and properties are automatically accessible since php 8.1 --- src/Test/EventDispatchingHttpCacheTestCase.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Test/EventDispatchingHttpCacheTestCase.php b/src/Test/EventDispatchingHttpCacheTestCase.php index 8cc80dad..a582f057 100644 --- a/src/Test/EventDispatchingHttpCacheTestCase.php +++ b/src/Test/EventDispatchingHttpCacheTestCase.php @@ -259,12 +259,10 @@ public function testPreStoreResponseNoStore() $refHttpCache = new \ReflectionClass(HttpCache::class); $refStore = $refHttpCache->getProperty('store'); - $refStore->setAccessible(true); $refStore->setValue($httpCache, $store); $refHttpCache = new \ReflectionObject($httpCache); $method = $refHttpCache->getMethod('store'); - $method->setAccessible(true); $method->invokeArgs($httpCache, [$request, $regularResponse]); $this->assertEquals(1, $testListener->preStoreCalls); }