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
if (0 < \count($invalidOptions = array_diff(array_keys($options), self::AVAILABLE_OPTIONS))) {
237
-
trigger_deprecation('symfony/messenger', '5.1', 'Invalid option(s) "%s" passed to the AMQP Messenger transport. Passing invalid options is deprecated.', implode('", "', $invalidOptions));
238
-
}
239
-
240
-
if (isset($options['prefetch_count'])) {
241
-
trigger_deprecation('symfony/messenger', '5.3', 'The "prefetch_count" option passed to the AMQP Messenger transport has no effect and should not be used.');
236
+
thrownewLogicException(sprintf('Invalid option(s) "%s" passed to the AMQP Messenger transport.', implode('", "', $invalidOptions)));
242
237
}
243
238
244
239
if (\is_array($options['queues'] ?? false)) {
@@ -248,14 +243,14 @@ private static function validateOptions(array $options): void
248
243
}
249
244
250
245
if (0 < \count($invalidQueueOptions = array_diff(array_keys($queue), self::AVAILABLE_QUEUE_OPTIONS))) {
251
-
trigger_deprecation('symfony/messenger', '5.1', 'Invalid queue option(s) "%s" passed to the AMQP Messenger transport. Passing invalid queue options is deprecated.', implode('", "', $invalidQueueOptions));
246
+
thrownewLogicException(sprintf('Invalid queue option(s) "%s" passed to the AMQP Messenger transport.', implode('", "', $invalidQueueOptions)));
$this->redeliveredAt = $redeliveredAt ?? new \DateTimeImmutable();
31
-
32
-
if (null !== $exceptionMessage) {
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));
34
-
}
35
-
$this->exceptionMessage = $exceptionMessage;
36
-
37
-
if (null !== $flattenException) {
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));
39
-
}
40
-
$this->flattenException = $flattenException;
41
28
}
42
29
43
30
publicstaticfunctiongetRetryCountFromEnvelope(Envelope$envelope): int
@@ -53,26 +40,6 @@ public function getRetryCount(): int
53
40
return$this->retryCount;
54
41
}
55
42
56
-
/**
57
-
* @deprecated since Symfony 5.2, use ErrorDetailsStamp instead.
58
-
*/
59
-
publicfunctiongetExceptionMessage(): ?string
60
-
{
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));
62
-
63
-
return$this->exceptionMessage;
64
-
}
65
-
66
-
/**
67
-
* @deprecated since Symfony 5.2, use ErrorDetailsStamp instead.
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