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