diff --git a/README.md b/README.md index 4813174..2d99761 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,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: