1 | <?php |
||
11 | class WebSocketsLogger extends Logger implements MessageComponentInterface |
||
12 | { |
||
13 | /** |
||
14 | * The HTTP app instance to watch. |
||
15 | * |
||
16 | * @var \Ratchet\Http\HttpServerInterface |
||
17 | */ |
||
18 | protected $app; |
||
19 | |||
20 | /** |
||
21 | * Create a new instance and add the app to watch. |
||
22 | * |
||
23 | * @param \Ratchet\MessageComponentInterface $app |
||
24 | * @return self |
||
25 | */ |
||
26 | public static function decorate(MessageComponentInterface $app): self |
||
32 | |||
33 | /** |
||
34 | * Set a new app to watch. |
||
35 | * |
||
36 | * @param \Ratchet\MessageComponentInterface $app |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function setApp(MessageComponentInterface $app) |
||
45 | |||
46 | /** |
||
47 | * Handle the HTTP open request. |
||
48 | * |
||
49 | * @param \Ratchet\ConnectionInterface $connection |
||
50 | * @return void |
||
51 | */ |
||
52 | public function onOpen(ConnectionInterface $connection) |
||
60 | |||
61 | /** |
||
62 | * Handle the HTTP message request. |
||
63 | * |
||
64 | * @param \Ratchet\ConnectionInterface $connection |
||
65 | * @param \Ratchet\RFC6455\Messaging\MessageInterface $message |
||
66 | * @return void |
||
67 | */ |
||
68 | public function onMessage(ConnectionInterface $connection, MessageInterface $message) |
||
74 | |||
75 | /** |
||
76 | * Handle the HTTP close request. |
||
77 | * |
||
78 | * @param \Ratchet\ConnectionInterface $connection |
||
79 | * @return void |
||
80 | */ |
||
81 | public function onClose(ConnectionInterface $connection) |
||
89 | |||
90 | /** |
||
91 | * Handle HTTP errors. |
||
92 | * |
||
93 | * @param \Ratchet\ConnectionInterface $connection |
||
94 | * @param Exception $exception |
||
95 | * @return void |
||
96 | */ |
||
97 | public function onError(ConnectionInterface $connection, Exception $exception) |
||
113 | } |
||
114 |
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..