Skip to content

Commit 86659d1

Browse files
committed
retry: Log::create() requires a string
As we defaulted to null, we passed null to create(), which fails.
1 parent 07a5950 commit 86659d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Skeleton/Transaction/Retry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trait Retry {
2626
* @param string $output
2727
* @param string $next_retry
2828
*/
29-
public function retry($output = null, $next_retry = '+15 minutes') {
29+
public function retry(string $output = '', $next_retry = '+15 minutes') {
3030
if (self::$max_attempts > 0 && $this->retry_attempt >= self::$max_attempts) {
3131
throw new \Exception($output);
3232
}
@@ -45,7 +45,7 @@ public function retry($output = null, $next_retry = '+15 minutes') {
4545
* @param int $exp
4646
* @param string $unit
4747
*/
48-
public function retry_incremental($output = null, $exp = 2, $unit = 'minutes') {
48+
public function retry_incremental(string $output = '', $exp = 2, $unit = 'minutes') {
4949
if (self::$max_attempts > 0 && $this->retry_attempt >= self::$max_attempts) {
5050
throw new \Exception($output);
5151
}

0 commit comments

Comments
 (0)