8000 minor #51801 [Messenger] Fix WrappedExceptionsTrait (chalasr) · symfony/symfony@a257327 · GitHub
[go: up one dir, main page]

Skip to content

Commit a257327

Browse files
committed
minor #51801 [Messenger] Fix WrappedExceptionsTrait (chalasr)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] Fix WrappedExceptionsTrait | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT Fixes some minor flaws introduced in #51653 Commits ------- f7242ca [Messenger] Fix WrappedExceptionsTrait
2 parents 3cc427d + f7242ca commit a257327

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