Skip to content

Commit b3a45be

Browse files
inherehuangzhhui
authored andcommitted
fix error on trigger event handler (swoft-cloud/swoft-component#196)
fix swoft-cloud/swoft#377
1 parent b1a48cd commit b3a45be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Event/LazyListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(callable $callback)
2727
*/
2828
public function handle(EventInterface $event)
2929
{
30-
return PhpHelper::call($this->callback, $event);
30+
return PhpHelper::call($this->callback, [$event]);
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)