File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ trait Retry {
26
26
* @param string $output
27
27
* @param string $next_retry
28
28
*/
29
- public function retry ($ output = null , $ next_retry = '+15 minutes ' ) {
29
+ public function retry (string $ output = '' , $ next_retry = '+15 minutes ' ) {
30
30
if (self ::$ max_attempts > 0 && $ this ->retry_attempt >= self ::$ max_attempts ) {
31
31
throw new \Exception ($ output );
32
32
}
@@ -45,7 +45,7 @@ public function retry($output = null, $next_retry = '+15 minutes') {
45
45
* @param int $exp
46
46
* @param string $unit
47
47
*/
48
- public function retry_incremental ($ output = null , $ exp = 2 , $ unit = 'minutes ' ) {
48
+ public function retry_incremental (string $ output = '' , $ exp = 2 , $ unit = 'minutes ' ) {
49
49
if (self ::$ max_attempts > 0 && $ this ->retry_attempt >= self ::$ max_attempts ) {
50
50
throw new \Exception ($ output );
51
51
}
You can’t perform that action at this time.
0 commit comments