Skip to content

Commit ef33600

Browse files
[12.x] Add missing import for RetryException in retry helper example (#10483)
* Add missing import for RetryException in retry helper example * Update helpers.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 25deab3 commit ef33600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helpers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2805,12 +2805,13 @@ return retry([100, 200], function () {
28052805
To only retry under specific conditions, you may pass a closure as the fourth argument to the `retry` function:
28062806

28072807
```php
2808+
use App\Exceptions\TemporaryException;
28082809
use Exception;
28092810

28102811
return retry(5, function () {
28112812
// ...
28122813
}, 100, function (Exception $exception) {
2813-
return $exception instanceof RetryException;
2814+
return $exception instanceof TemporaryException;
28142815
});
28152816
```
28162817

0 commit comments

Comments
 (0)