Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Apr 1, 2024
1 parent 96b450b commit 98f03df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ protected function _createSocketId(): string
*/
public function _getChannelType(string $channel): string
{
return (strpos($channel, 'private-') === 0)
return (str_starts_with($channel, 'private-'))
? CHANNEL_TYPE_PRIVATE
: ((strpos($channel, 'presence-') === 0) ? CHANNEL_TYPE_PRESENCE : CHANNEL_TYPE_PUBLIC);
: ((str_starts_with($channel, 'presence-')) ? CHANNEL_TYPE_PRESENCE : CHANNEL_TYPE_PUBLIC);
}

/**
Expand Down

0 comments on commit 98f03df

Please sign in to comment.