nitpicks
This commit is contained in:
parent
e8fb5294ab
commit
ee0ab6b463
|
|
@ -5,7 +5,6 @@ namespace BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Channels;
|
|||
use BeyondCode\LaravelWebSockets\Events\ChannelOccupied;
|
||||
use BeyondCode\LaravelWebSockets\Events\ChannelVacated;
|
||||
use BeyondCode\LaravelWebSockets\Events\SubscribedToChannel;
|
||||
use BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Dashboard;
|
||||
use BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Exceptions\InvalidSignatureException;
|
||||
use Illuminate\Support\Collection;
|
||||
use Ratchet\ConnectionInterface;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class ChannelManager
|
|||
return $this->channels[$appId][$channelId] ?? null;
|
||||
}
|
||||
|
||||
protected function detectChannelClass($channelId): string
|
||||
protected function detectChannelClass(string $channelId): string
|
||||
{
|
||||
if (starts_with($channelId, 'private-')) {
|
||||
return PrivateChannel::class;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Channels;
|
||||
|
||||
use Ratchet\ConnectionInterface;
|
||||
use stdClass;
|
||||
|
||||
class PresenceChannel extends Channel
|
||||
{
|
||||
|
|
@ -16,7 +17,7 @@ class PresenceChannel extends Channel
|
|||
/*
|
||||
* @link https://pusher.com/docs/pusher_protocol#presence-channel-events
|
||||
*/
|
||||
public function subscribe(ConnectionInterface $connection, $payload)
|
||||
public function subscribe(ConnectionInterface $connection, stdClass $payload)
|
||||
{
|
||||
$this->verifySignature($connection, $payload);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue