for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jerodev\PhpIrcClient\Messages;
use Jerodev\PhpIrcClient\Helpers\Event;
use Jerodev\PhpIrcClient\IrcClient;
class NameReplyMessage extends IrcMessage
{
/** @var string */
public $channel;
/** @var string[] */
public $names;
public function __construct(string $message)
parent::__construct($message);
$this->channel = preg_replace('/^[^\#]+(\#.*?)$/', '$1', $this->commandsuffix);
$this->names = preg_split('/\s+/', $this->payload, -1, PREG_SPLIT_NO_EMPTY);
preg_split('/\s+/', $thi...es\PREG_SPLIT_NO_EMPTY)
false
string[]
$names
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..
}
public function handle(IrcClient $client, bool $force = false): void
if ($this->handled && !$force) {
return;
$client->getChannel($this->channel)->setUsers($this->names);
public function getEvents(): array
return [
new Event('names', [$this->channel, $this->names]),
new Event("names#$this->channel", [$this->names])
];
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..