The expression return self::fromMessage($message) returns the type Yiisoft\Queue\Message\EnvelopeTrait which is incompatible with the type-hinted return Yiisoft\Queue\Message\MessageInterface.
Loading history...
21
}
22
23
5
public function getMessage(): MessageInterface
24
{
25
5
return $this->message;
26
}
27
28
public function withMessage(MessageInterface $message): self