Skip to content

Commit

Permalink
fix: patch up websocket function
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Dec 25, 2022
1 parent 444f48a commit 9454288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function ws(string $name, callable $callback)
{
Config::set('eien.events', array_merge(
Config::get('eien.events') ?? [],
[$name = $callback]
[$name => $callback]
));
}

Expand Down

0 comments on commit 9454288

Please sign in to comment.