We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8a6a0 commit fd249c1Copy full SHA for fd249c1
src/SleeperHandler.php
@@ -103,6 +103,9 @@ public function processNotifications() : void{
103
while(true){
104
$notifierIds = $this->sharedObject->synchronized(function() : array{
105
$notifierIds = [];
106
+ //phpstan can't understand ThreadSafeArray generics because ThreadSafe implements
107
+ //IteratorAggregate<mixed, mixed>, so we need to force the issue here
108
+ /** @var int $notifierId */
109
foreach($this->sharedObject as $notifierId => $_){
110
$notifierIds[$notifierId] = $notifierId;
111
unset($this->sharedObject[$notifierId]);
0 commit comments