Skip to content

Commit

Permalink
fix error on trigger event handler (swoft-cloud/swoft-component#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere authored and huangzhhui committed Sep 5, 2018
1 parent b1a48cd commit b3a45be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event/LazyListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(callable $callback)
*/
public function handle(EventInterface $event)
{
return PhpHelper::call($this->callback, $event);
return PhpHelper::call($this->callback, [$event]);
}

/**
Expand Down

0 comments on commit b3a45be

Please sign in to comment.