$this->getTestUrl() of type string is incompatible with the type array expected by parameter $url of DiscordWebhook\Webhook::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
29
$this->webhook = new Webhook(/** @scrutinizer ignore-type */ $this->getTestUrl());
Loading history...
30
31
if ($this->getTestUrl() === '') {
32
throw new \LogicException('Cannot test webhook without test URL. Please provide it as environment variable in the docker-compose.yml file.');