Skip to content

Commit

Permalink
Fix deprecation on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 19, 2023
1 parent 2a6b111 commit 8109892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/ConfigCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 8109892

Please sign in to comment.