We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695b669 commit 5897873Copy full SHA for 5897873
src/Timer/Timers.php
@@ -46,7 +46,8 @@ public function add(TimerInterface $timer)
46
47
public function contains(TimerInterface $timer)
48
{
49
- return isset($this->timers[\spl_object_hash($timer)]);
+ $id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer);
50
+ return isset($this->timers[$id]);
51
}
52
53
public function cancel(TimerInterface $timer)
0 commit comments