Skip to content

Commit

Permalink
Fix (#316)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Bremenkanp <[email protected]>
  • Loading branch information
1 parent 58516e7 commit 411cef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/StartSwooleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected function writeServerOutput($server)
->filter()
->groupBy(fn ($output) => $output)
->each(function ($group) {
is_array($stream = json_decode($output = $group->first(), true))
is_array($stream = json_decode($output = $group->first(), true)) && isset($stream['type'])
? $this->handleStream($stream)
: $this->error($output);

Expand Down

0 comments on commit 411cef2

Please sign in to comment.