These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | require 'vendor/autoload.php'; |
||
4 | |||
5 | // Your shell script |
||
6 | use ABM\Wasabi\Prestashop; |
||
7 | use Ratchet\Http\HttpServer; |
||
8 | use Ratchet\Server\IoServer; |
||
9 | use Ratchet\WebSocket\WsServer; |
||
10 | |||
11 | $wasabi = new WsServer(new Prestashop()); |
||
12 | $wasabi->disableVersion(0); // old, bad, protocol version |
||
0 ignored issues
–
show
|
|||
13 | $wasabi->setEncodingChecks(false); |
||
0 ignored issues
–
show
The method
setEncodingChecks() does not seem to exist on object<Ratchet\WebSocket\WsServer> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||
14 | |||
15 | // Make sure you're running this as root |
||
16 | $server = IoServer::factory(new HttpServer($wasabi), 8787, '0.0.0.0'); |
||
17 | $server->run(); |
||
18 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.