| Total Complexity | 6 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class TcpServer implements ServerInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | private array $config; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \React\Socket\ServerInterface |
||
| 18 | */ |
||
| 19 | private $tcpServer = null; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ConsumerInterface[] |
||
| 24 | */ |
||
| 25 | private array $consumers; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $config |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function setConfig(array $config): void { |
||
| 32 | $this->config = $config; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function start(): void { |
||
| 55 | } |
||
| 56 | }); |
||
| 57 | }); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return void |
||
| 62 | */ |
||
| 63 | public function down(): void { |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param ConnectionInterface[] $consumers |
||
| 69 | * @return void |
||
| 70 | */ |
||
| 71 | public function setConsumers(array $consumers): void { |
||
| 73 | } |
||
| 74 | } |
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..