diff --git a/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php b/src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php index d4534d7c7353..3b81150b19a6 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 1b624db91c6c..88ab12ac2fc3 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 4b6fb65c6dc7..bede05bec51d 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[] */
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: