Skip to content

Commit 5897873

Browse files
committed
id contains
1 parent 695b669 commit 5897873

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Timer/Timers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public function add(TimerInterface $timer)
4646

4747
public function contains(TimerInterface $timer)
4848
{
49-
return isset($this->timers[\spl_object_hash($timer)]);
49+
$id = \PHP_VERSION_ID < 70200 ? \spl_object_hash($timer) : \spl_object_id($timer);
50+
return isset($this->timers[$id]);
5051
}
5152

5253
public function cancel(TimerInterface $timer)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy