It seems like $websocket of type object<WebSocket\Client> is incompatible with the declared type object<SocketCluster\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...
28
}
29
30
/**
31
* Get Websocket
32
*
33
* @return WebSocket\Client
34
*/
35
public function getWebsocket()
36
{
37
return $this->websocket;
38
}
39
40
/**
41
* Publish Channel
42
*
43
* @param string $channel
44
* @param mixed $data
45
* @param Closure|null $callback
46
*
47
* @return void
48
*/
49
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..