From f7242ca6485c0bb515982d21cbdf37f9711b32bc Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Mon, 2 Oct 2023 02:10:37 +0200 Subject: [PATCH] [Messenger] Fix WrappedExceptionsTrait --- .../Messenger/Exception/DelayedMessageHandlingException.php | 3 +-- .../Component/Messenger/Exception/HandlerFailedException.php | 5 ++--- .../Component/Messenger/Exception/WrappedExceptionsTrait.php | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php b/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php index d4534d7c73538..3b81150b19a62 100644 --- a/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php +++ b/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php @@ -23,7 +23,6 @@ class DelayedMessageHandlingException extends RuntimeException implements Wrappe { use WrappedExceptionsTrait; - private array $exceptions; private Envelope $envelope; public function __construct(array $exceptions, Envelope $envelope) @@ -51,7 +50,7 @@ public function __construct(array $exceptions, Envelope $envelope) */ public function getExceptions(): array { - trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class); + trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class); return $this->exceptions; } diff --git a/src/Symfony/Component/Messenger/Exception/HandlerFailedException.php b/src/Symfony/Component/Messenger/Exception/HandlerFailedException.php index 1b624db91c6cd..88ab12ac2fc30 100644 --- a/src/Symfony/Component/Messenger/Exception/HandlerFailedException.php +++ b/src/Symfony/Component/Messenger/Exception/HandlerFailedException.php @@ -17,7 +17,6 @@ class HandlerFailedException extends RuntimeException implements WrappedExceptio { use WrappedExceptionsTrait; - private array $exceptions; private Envelope $envelope; /** @@ -54,7 +53,7 @@ public function getEnvelope(): Envelope */ public function getNestedExceptions(): array { - trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class); + trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class); return $this->exceptions; } @@ -64,7 +63,7 @@ public function getNestedExceptions(): array */ public function getNestedExceptionOfClass(string $exceptionClassName): array { - trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class); + trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class); return array_values( array_filter( diff --git a/src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php b/src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php index 4b6fb65c6dc7f..bede05bec51db 100644 --- a/src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php +++ b/src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php @@ -18,6 +18,8 @@ */ trait WrappedExceptionsTrait { + private array $exceptions; + /** * @return \Throwable[] */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy