From 7a8a1802a0055149adcfbfb2e6b7f70e1d06e852 Mon Sep 17 00:00:00 2001 From: Matt Bonneau Date: Sat, 21 Sep 2024 19:15:40 -0400 Subject: [PATCH] Use setValue for php 7.2/7.3 compatibility in testing --- test/Rx/SchedulerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Rx/SchedulerTest.php b/test/Rx/SchedulerTest.php index 874773d..27e5fcf 100644 --- a/test/Rx/SchedulerTest.php +++ b/test/Rx/SchedulerTest.php @@ -16,7 +16,7 @@ private function resetStaticScheduler() foreach (['default', 'async', 'immediate', 'defaultFactory', 'asyncFactory'] as $propertyName) { $prop = $ref->getProperty($propertyName); $prop->setAccessible(true); - $ref->setStaticPropertyValue($propertyName, null); + $prop->setValue(null, null); $prop->setAccessible(false); } }