Skip to content

Commit

Permalink
Fixed build on laravel 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic authored Sep 17, 2019
1 parent c700879 commit ad085fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Broadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Denpa\ZeroMQ;

use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Denpa\ZeroMQ\Manager as ZeroMQ;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
Expand Down Expand Up @@ -98,7 +99,7 @@ public function broadcast(array $channels, $event, array $payload = []) : void
$payload = json_encode([
'event' => $event,
'data' => $payload,
'socket' => array_pull($payload, 'socket'),
'socket' => Arr::pull($payload, 'socket'),
]);

$connection->publish($this->formatChannels($channels), $payload)->run();
Expand Down

0 comments on commit ad085fc

Please sign in to comment.