From 8109892f27beed9252bd1f1c1880aeb4ad842650 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 19 Jul 2023 22:21:11 +0200 Subject: [PATCH] Fix deprecation on PHP 8.3 --- Tests/ConfigCacheTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/ConfigCacheTest.php b/Tests/ConfigCacheTest.php index d7099fb97..41d7fed92 100644 --- a/Tests/ConfigCacheTest.php +++ b/Tests/ConfigCacheTest.php @@ -72,7 +72,7 @@ public function testFreshResourceInDebug() { $p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache'); $p->setAccessible(true); - $p->setValue(SelfCheckingResourceChecker::class, []); + $p->setValue(null, []); $freshResource = new ResourceStub(); $freshResource->setFresh(true); @@ -87,7 +87,7 @@ public function testStaleResourceInDebug() { $p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache'); $p->setAccessible(true); - $p->setValue(SelfCheckingResourceChecker::class, []); + $p->setValue(null, []); $staleResource = new ResourceStub(); $staleResource->setFresh(false);