Skip to content

Commit

Permalink
Merge branch '5.4' into 6.2
Browse files Browse the repository at this point in the history
* 5.4:
  Fix deprecation on PHP 8.3
  • Loading branch information
nicolas-grekas committed Jul 19, 2023
2 parents 249271d + 8109892 commit 26a3db7
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 @@ -71,7 +71,7 @@ public function testIsFreshWhenNoResourceProvided(bool $debug)
public function testFreshResourceInDebug()
{
$p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache');
$p->setValue(SelfCheckingResourceChecker::class, []);
$p->setValue(null, []);

$freshResource = new ResourceStub();
$freshResource->setFresh(true);
Expand All @@ -85,7 +85,7 @@ public function testFreshResourceInDebug()
public function testStaleResourceInDebug()
{
$p = (new \ReflectionClass(SelfCheckingResourceChecker::class))->getProperty('cache');
$p->setValue(SelfCheckingResourceChecker::class, []);
$p->setValue(null, []);

$staleResource = new ResourceStub();
$staleResource->setFresh(false);
Expand Down

0 comments on commit 26a3db7

Please sign in to comment.