From 760edee8cb2e2ca621ee588346b5df1103e2cef4 Mon Sep 17 00:00:00 2001 From: viktorprogger Date: Wed, 18 Sep 2024 20:18:10 +0500 Subject: [PATCH] Fix some psalm errors --- src/Message/EnvelopeInterface.php | 4 ++-- src/Message/EnvelopeTrait.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Message/EnvelopeInterface.php b/src/Message/EnvelopeInterface.php index e1873bcb..5c8266c3 100644 --- a/src/Message/EnvelopeInterface.php +++ b/src/Message/EnvelopeInterface.php @@ -21,9 +21,9 @@ public function withMessage(MessageInterface $message): self; /** * Finds an envelope in the current envelope stack or creates a new one from the message. * - * @template T + * @template T of EnvelopeInterface * - * @psalm-param T> $className + * @psalm-param class-string $className * @throws NotEnvelopInterfaceException Implementation MUST throw this exception if the given class does not * implement {@see EnvelopeInterface}. * diff --git a/src/Message/EnvelopeTrait.php b/src/Message/EnvelopeTrait.php index 1dab866d..51f4440f 100644 --- a/src/Message/EnvelopeTrait.php +++ b/src/Message/EnvelopeTrait.php @@ -48,9 +48,9 @@ public function getMetadata(): array /** * Finds an envelope in the current envelope stack or creates a new one from the message. * - * @template T + * @template T of EnvelopeInterface * - * @psalm-param T> $className + * @psalm-param class-string $className * @throws NotEnvelopInterfaceException is thrown if the given class does not implement {@see EnvelopeInterface}. * * @psalm-return T