Open shulard opened 6 years ago
Hello,
In the Bin/Client.php class, the return type for the main method is :int. But at line 79, there is a call to $this->usage() which return void.
main
:int
$this->usage()
void
Since the value returned by that method is not compatible with the main signature, we get an error like :
Uncaught TypeError: Return value of Hoa\Websocket\Bin\Client::main() must be of the type integer, null returned
https://github.com/hoaproject/Websocket/blob/f5cf84e5f51490f2aa88eb375bfabc1b2fcb3678/Bin/Client.php#L79
This is related to RFC: hoaproject/Central#75.
Hello,
In the Bin/Client.php class, the return type for the
main
method is:int
. But at line 79, there is a call to$this->usage()
which returnvoid
.Since the value returned by that method is not compatible with the
main
signature, we get an error like :https://github.com/hoaproject/Websocket/blob/f5cf84e5f51490f2aa88eb375bfabc1b2fcb3678/Bin/Client.php#L79
This is related to RFC: hoaproject/Central#75.