| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class NameReplyMessage extends IrcMessage |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | public $channel; |
||
| 11 | |||
| 12 | /** @var string[] */ |
||
| 13 | public $names; |
||
| 14 | |||
| 15 | public function __construct(string $message) |
||
| 16 | { |
||
| 17 | parent::__construct($message); |
||
| 18 | |||
| 19 | $this->channel = preg_replace('/^[^\#]+(\#.*?)$/', '$1', $this->commandsuffix); |
||
| 20 | $this->names = preg_split('/\s+/', $this->payload, -1, PREG_SPLIT_NO_EMPTY); |
||
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | public function handle(IrcClient $client, bool $force = false): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
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..