src/Task/Retries/Retries.php
public function increase()
    {
        $this->retries++;

        if ($this->retries > $this->maxRetries) {
            throw new MaxRetriesExceededException(
                sprintf(
                    'Max allowed retries exceeded. Allowed: %s. Tried: %s.',
                    $this->maxRetries,
                    $this->retries
                )
            );
        }

        return $this;
    }
public function increase()
    {
        $this->retries++;

        if ($this->retries > $this->maxRetries) {
            throw new MaxRetriesExceededException(
                sprintf(
                    'Max allowed retries exceeded. Allowed: %s. Tried: %s.',
                    $this->maxRetries,
                    $this->retries
                )
            );
        }

        return $this;
    }
Increases the retry counter by one.

@return $this