It seems like $websocket of type object<WebSocket\Client> is incompatible with the declared type object<LaravelSocketCluster\WebSocket\Client> of property $websocket.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
29
}
30
31
/**
32
* Publish Channel
33
*
34
* @param string $channel
35
* @param mixed $data
36
* @param Closure|null $callback
37
*
38
* @return void
39
*/
40
public function publish($channel, $data, Closure $callback = null)
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..