Skip to content

Commit 8b286a9

Browse files
phpstan :/
1 parent e97243d commit 8b286a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/event/AsyncEvent.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ private function processRemainingHandlers(array $handlers, \Closure $resolve, \C
8989
Utils::getNiceClosureName($handler->getHandler()) . "(" . Utils::getNiceClassName($this) . ")" .
9090
" (max: " . self::MAX_CONCURRENT_CALLS . ")");
9191
}
92-
$removeCallback = static fn() => --self::$handlersCallState[$handlerId];
92+
$removeCallback = static function() use ($handlerId) : void{
93+
--self::$handlersCallState[$handlerId];
94+
};
9395
if($handler->canBeCalledConcurrently()){
9496
unset($handlers[$k]);
9597
++self::$handlersCallState[$handlerId];

0 commit comments

Comments
 (0)