Fix count name ref
This commit is contained in:
parent
f4d916a4d2
commit
691b9ef417
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ trait Retryable
|
||||||
$attributes = $method->getAttributes(Retry::class);
|
$attributes = $method->getAttributes(Retry::class);
|
||||||
$attribute = $attributes[0] ?? null;
|
$attribute = $attributes[0] ?? null;
|
||||||
$args = $attribute?->getArguments();
|
$args = $attribute?->getArguments();
|
||||||
$retries = $args['retries'] ?? 0;
|
$retries = $args['count'] ?? 0;
|
||||||
return \max(0, $retries);
|
return \max(0, $retries);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue