From 52c15469381d07cb283b687430dc0f8bb39b77ad Mon Sep 17 00:00:00 2001 From: Aleksandr Denisyuk Date: Tue, 7 Sep 2021 15:21:15 +0300 Subject: [PATCH] Updated docs --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 8772205..9e6302c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -205,11 +205,11 @@ $baseTimeMs = 1000; $backOff = new ExponentialBackOff($maxAttempts, $baseTimeMs); -$classifier = new ExceptionClassifier([ +$exceptionClassifier = new ExceptionClassifier([ \RuntimeException::class, ]); -$retry = new Retry($backOff, $classifier); +$retry = new Retry($backOff, $exceptionClassifier); ``` Put the business logic in a callback function and call it: