Skip to content

Commit 7a8a180

Browse files
committed
Use setValue for php 7.2/7.3 compatibility in testing
1 parent 9d19147 commit 7a8a180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Rx/SchedulerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private function resetStaticScheduler()
1616
foreach (['default', 'async', 'immediate', 'defaultFactory', 'asyncFactory'] as $propertyName) {
1717
$prop = $ref->getProperty($propertyName);
1818
$prop->setAccessible(true);
19-
$ref->setStaticPropertyValue($propertyName, null);
19+
$prop->setValue(null, null);
2020
$prop->setAccessible(false);
2121
}
2222
}

0 commit comments

Comments
 (0)