Skip to content

Commit f7242ca

Browse files
committed
[Messenger] Fix WrappedExceptionsTrait
1 parent 3cc427d commit f7242ca

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Symfony/Component/Messenger/Exception/DelayedMessageHandlingException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class DelayedMessageHandlingException extends RuntimeException implements Wrappe
2323
{
2424
use WrappedExceptionsTrait;
2525

26-
private array $exceptions;
2726
private Envelope $envelope;
2827

2928
public function __construct(array $exceptions, Envelope $envelope)
@@ -51,7 +50,7 @@ public function __construct(array $exceptions, Envelope $envelope)
5150
*/
5251
public function getExceptions(): array
5352
{
54-
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class);
53+
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class);
5554

5655
return $this->exceptions;
5756
}

src/Symfony/Component/Messenger/Exception/HandlerFailedException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class HandlerFailedException extends RuntimeException implements WrappedExceptio
1717
{
1818
use WrappedExceptionsTrait;
1919

20-
private array $exceptions;
2120
private Envelope $envelope;
2221

2322
/**
@@ -54,7 +53,7 @@ public function getEnvelope(): Envelope
5453
*/
5554
public function getNestedExceptions(): array
5655
{
57-
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class);
56+
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class);
5857

5958
return $this->exceptions;
6059
}
@@ -64,7 +63,7 @@ public function getNestedExceptions(): array
6463
*/
6564
public function getNestedExceptionOfClass(string $exceptionClassName): array
6665
{
67-
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions" instead.', __METHOD__, self::class);
66+
trigger_deprecation('symfony/messenger', '6.4', 'The "%s()" method is deprecated, use "%s::getWrappedExceptions()" instead.', __METHOD__, self::class);
6867

6968
return array_values(
7069
array_filter(

src/Symfony/Component/Messenger/Exception/WrappedExceptionsTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
trait WrappedExceptionsTrait
2020
{
21+
private array $exceptions;
22+
2123
/**
2224
* @return \Throwable[]
2325
*/

0 commit comments

Comments
 (0)
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