1 | <?php |
||
9 | class HttpLogger extends Logger implements MessageComponentInterface |
||
10 | { |
||
11 | /** @var \Ratchet\Http\HttpServerInterface */ |
||
12 | protected $app; |
||
13 | |||
14 | public static function decorate(MessageComponentInterface $app): self |
||
20 | |||
21 | public function setApp(MessageComponentInterface $app) |
||
27 | |||
28 | public function onOpen(ConnectionInterface $connection) |
||
32 | |||
33 | public function onMessage(ConnectionInterface $connection, $message) |
||
37 | |||
38 | public function onClose(ConnectionInterface $connection) |
||
42 | |||
43 | public function onError(ConnectionInterface $connection, Exception $exception) |
||
57 | } |
||
58 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.