Skip to content

Commit 5fded13

Browse files
committed
Removed impossible scenario, as foreach() correctly skips missing keys at each loop
1 parent 88d35a6 commit 5fded13

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Timer/Timers.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ public function tick()
8080
break;
8181
}
8282

83-
// skip any timers that are removed while we process the current schedule
84-
if (!isset($this->schedule[$id]) || $this->schedule[$id] !== $scheduled) {
85-
continue;
86-
}
87-
8883
$timer = $this->timers[$id];
8984
\call_user_func($timer->getCallback(), $timer);
9085

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