Skip to content

Commit

Permalink
Use setValue for php 7.2/7.3 compatibility in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonneau committed Sep 21, 2024
1 parent 9d19147 commit 7a8a180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Rx/SchedulerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 7a8a180

Please sign in to comment.