You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Using the "getLastRedeliveryStampWithException" method in the "%s" class is deprecated, use the "Envelope::last(%s)" instead.',
163
-
self::class,
164
-
ErrorDetailsStamp::class
165
-
)
166
-
);
158
+
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "getLastRedeliveryStampWithException" method in the "%s" class is deprecated, use the "Envelope::last(%s)" instead.', self::class, ErrorDetailsStamp::class));
167
159
}
168
160
169
161
// Use ErrorDetailsStamp instead if it is available
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Stamp/RedeliveryStamp.php
+4-36Lines changed: 4 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -30,28 +30,12 @@ public function __construct(int $retryCount, string $exceptionMessage = null, Fl
30
30
$this->redeliveredAt = $redeliveredAt ?? new \DateTimeImmutable();
31
31
32
32
if (null !== $exceptionMessage) {
33
-
trigger_deprecation(
34
-
'symfony/messenger',
35
-
'5.2',
36
-
sprintf(
37
-
'Using the "$exceptionMessage" parameter in the "%s" class is deprecated, use the "%s" class instead.',
38
-
self::class,
39
-
ErrorDetailsStamp::class
40
-
)
41
-
);
33
+
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "$exceptionMessage" parameter in the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
42
34
}
43
35
$this->exceptionMessage = $exceptionMessage;
44
36
45
37
if (null !== $flattenException) {
46
-
trigger_deprecation(
47
-
'symfony/messenger',
48
-
'5.2',
49
-
sprintf(
50
-
'Using the "$flattenException" parameter in the "%s" class is deprecated, use the "%s" class instead.',
51
-
self::class,
52
-
ErrorDetailsStamp::class
53
-
)
54
-
);
38
+
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "$flattenException" parameter in the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
55
39
}
56
40
$this->flattenException = $flattenException;
57
41
}
@@ -74,15 +58,7 @@ public function getRetryCount(): int
74
58
*/
75
59
publicfunctiongetExceptionMessage(): ?string
76
60
{
77
-
trigger_deprecation(
78
-
'symfony/messenger',
79
-
'5.2',
80
-
sprintf(
81
-
'Using the "getExceptionMessage()" method of the "%s" class is deprecated, use the "%s" class instead.',
82
-
self::class,
83
-
ErrorDetailsStamp::class
84
-
)
85
-
);
61
+
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "getExceptionMessage()" method of the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
86
62
87
63
return$this->exceptionMessage;
88
64
}
@@ -92,15 +68,7 @@ public function getExceptionMessage(): ?string
'Using the "getFlattenException()" method of the "%s" class is deprecated, use the "%s" class instead.',
100
-
self::class,
101
-
ErrorDetailsStamp::class
102
-
)
103
-
);
71
+
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "getFlattenException()" method of the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
0 commit comments