title: array_merge(): Expected parameter 2 to be an array, null given pusher laravel
body: <p>I'm trying to learn how to work with events and pusher, I've started with something very simple</p>
  <p>I am working with laravel 8 livewire.</p>
  <p>From pusher to view it works fine, but when I call the event from the component I get the error :</p>
  <p><a href="https://flareapp.io/share/dmkzeG65#F77" rel="nofollow noreferrer">https://flareapp.io/share/dmkzeG65#F77</a></p>
  <p><strong>View:</strong></p>
  <pre><code>&lt;div&gt;
      &lt;div class=&quot;mt-20 col-span-2 editor mx-auto w-10/12 flex flex-col text-gray-800 border border-gray-300 p-4 shadow-lg max-w-2xl rounded&quot;&gt;
  
          &lt;textarea id=&quot;mensaje&quot; wire:model=&quot;mensaje&quot; class=&quot;mt-4 rounded description bg-gray-100 sec p-3 h-20 border border-gray-300 outline-none&quot; spellcheck=&quot;false&quot; placeholder=&quot;Aqui dispones la oportunidad de argumentar tu opinión.&quot;&gt;&lt;/textarea&gt;
  
          &lt;div class=&quot;buttons flex mt-2&quot;&gt;
              &lt;div class=&quot;btn border border-gray-300 p-1 px-3 font-semibold cursor-pointer text-gray-500 ml-auto&quot;&gt;
                  Cancel
              &lt;/div&gt;
              &lt;button wire:click=&quot;enviarMensaje&quot; class=&quot;btn border border-indigo-500 p-1 px-3 font-semibold cursor-pointer text-gray-200 ml-2 bg-indigo-500&quot; type=&quot;submit&quot;&gt;
                  Comentar
              &lt;/button&gt;
          &lt;/div&gt;
          @error('mensaje') &lt;small class=&quot;text-red-600&quot;&gt;{{$message}}&lt;/small&gt; @enderror
      &lt;/div&gt;
  
      &lt;script&gt;
  
          // Enable pusher logging - don't include this in production
          Pusher.logToConsole = true;
  
          var pusher = new Pusher('d1fc007f6e1d80963c33', {
            cluster: 'eu'
          });
  
          var channel = pusher.subscribe('my-channel');
          channel.bind('my-event', function(data) {
            alert(JSON.stringify(data));
          });
        &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  <p><strong>LIVEWIRE COMPONENT</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Http\Livewire;
  
  use App\Events\Mensaje;
  use Livewire\Component;
  use App\Events\EnviarMensaje;
  use App\Events\SendMessage;
  
  class ChatForm extends Component
  {
      public  $mensaje;
  
      public function mount()
      {
          $this-&gt;mensaje = '';
      }
  
      public function enviarMensaje()
      {
          event(new SendMessage($this-&gt;mensaje));
      }
      public function render()
      {
          return view('livewire.chat-form');
      }
  }
  </code></pre>
  <p><strong>EVENT</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Events;
  
  use Illuminate\Broadcasting\InteractsWithSockets;
  use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  use Illuminate\Foundation\Events\Dispatchable;
  use Illuminate\Queue\SerializesModels;
  
  class SendMessage implements ShouldBroadcast
  {
      use Dispatchable, InteractsWithSockets, SerializesModels;
  
      public $message;
  
      public function __construct($message)
      {
          $this-&gt;message = $message;
      }
  
      public function broadcastOn()
      {
          return ['my-channel'];
      }
  
      public function broadcastAs()
      {
          return 'my-event';
      }
  
  }
  </code></pre>
  <p>I look forward to your help. Thank you very much for your help.</p>