Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a39c86

Browse files
author
Benjamin Dos Santos
committed
Remove useless "?"
1 parentda5da9a commit6a39c86

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

‎UPGRADE-5.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ Messenger
7373
* Deprecated Doctrine transport. It has moved to a separate package. Run`composer require symfony/doctrine-messenger` to use the new classes.
7474
* Deprecated RedisExt transport. It has moved to a separate package. Run`composer require symfony/redis-messenger` to use the new classes.
7575
* Deprecated use of invalid options in Redis and AMQP connections.
76-
* Deprecated*not* declaring a`?\Throwable` argument in`RetryStrategyInterface::isRetryable()`
77-
* Deprecated*not* declaring a`?\Throwable` argument in`RetryStrategyInterface::getWaitingTime()`
76+
* Deprecated*not* declaring a`\Throwable` argument in`RetryStrategyInterface::isRetryable()`
77+
* Deprecated*not* declaring a`\Throwable` argument in`RetryStrategyInterface::getWaitingTime()`
7878

7979
Notifier
8080
--------

‎UPGRADE-6.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Messenger
6565
* Removed Doctrine transport. Run`composer require symfony/doctrine-messenger` to keep the transport in your application.
6666
* Removed RedisExt transport. Run`composer require symfony/redis-messenger` to keep the transport in your application.
6767
* Use of invalid options in Redis and AMQP connections now throws an error.
68-
* The signature of method`RetryStrategyInterface::isRetryable()` has been updated to`RetryStrategyInterface::isRetryable(Envelope $message,?\Throwable $throwable)`.
69-
* The signature of method`RetryStrategyInterface::getWaitingTime()` has been updated to`RetryStrategyInterface::getWaitingTime(Envelope $message,?\Throwable $throwable)`.
68+
* The signature of method`RetryStrategyInterface::isRetryable()` has been updated to`RetryStrategyInterface::isRetryable(Envelope $message, \Throwable $throwable = null)`.
69+
* The signature of method`RetryStrategyInterface::getWaitingTime()` has been updated to`RetryStrategyInterface::getWaitingTime(Envelope $message, \Throwable $throwable = null)`.
7070

7171
PhpUnitBridge
7272
-------------

‎src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHANGELOG
77
* Moved AmqpExt transport to package`symfony/amqp-messenger`. All classes in`Symfony\Component\Messenger\Transport\AmqpExt` have been moved to`Symfony\Component\Messenger\Bridge\Amqp\Transport`
88
* Moved Doctrine transport to package`symfony/doctrine-messenger`. All classes in`Symfony\Component\Messenger\Transport\Doctrine` have been moved to`Symfony\Component\Messenger\Bridge\Doctrine\Transport`
99
* Moved RedisExt transport to package`symfony/redis-messenger`. All classes in`Symfony\Component\Messenger\Transport\RedisExt` have been moved to`Symfony\Component\Messenger\Bridge\Redis\Transport`
10-
* Added support for passing a`?\Throwable` argument to`RetryStrategyInterface` methods. This allows to define strategies based on the reason of the handling failure.
10+
* Added support for passing a`\Throwable` argument to`RetryStrategyInterface` methods. This allows to define strategies based on the reason of the handling failure.
1111

1212
5.0.0
1313
-----

‎src/Symfony/Component/Messenger/Retry/MultiplierRetryStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct(int $maxRetries = 3, int $delayMilliseconds = 1000,
6666
/**
6767
* @param \Throwable|null $throwable The cause of the failed handling
6868
*/
69-
publicfunctionisRetryable(Envelope$message,?\Throwable$throwable =null):bool
69+
publicfunctionisRetryable(Envelope$message,\Throwable$throwable =null):bool
7070
{
7171
$retries = RedeliveryStamp::getRetryCountFromEnvelope($message);
7272

@@ -76,7 +76,7 @@ public function isRetryable(Envelope $message, ?\Throwable $throwable = null): b
7676
/**
7777
* @param \Throwable|null $throwable The cause of the failed handling
7878
*/
79-
publicfunctiongetWaitingTime(Envelope$message,?\Throwable$throwable =null):int
79+
publicfunctiongetWaitingTime(Envelope$message,\Throwable$throwable =null):int
8080
{
8181
$retries = RedeliveryStamp::getRetryCountFromEnvelope($message);
8282

‎src/Symfony/Component/Messenger/Retry/RetryStrategyInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ interface RetryStrategyInterface
2323
/**
2424
* @param \Throwable|null $throwable The cause of the failed handling
2525
*/
26-
publicfunctionisRetryable(Envelope$message/*,?\Throwable $throwable = null*/):bool;
26+
publicfunctionisRetryable(Envelope$message/*, \Throwable $throwable = null*/):bool;
2727

2828
/**
2929
* @param \Throwable|null $throwable The cause of the failed handling
3030
*
3131
* @return int The time to delay/wait in milliseconds
3232
*/
33-
publicfunctiongetWaitingTime(Envelope$message/*,?\Throwable $throwable = null*/):int;
33+
publicfunctiongetWaitingTime(Envelope$message/*, \Throwable $throwable = null*/):int;
3434
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp