> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 0.4.0

**`(feat):`** Retry HTTP requests on status codes 408, 429, 5XX. You can configure the maximum number of retries like this:
`php $client = new FooClient("token", ['maxRetries' => 3]) $client->bar($request, ['maxRetries' => 5]); `
The default for `maxRetries` is 2, meaning up to 3 HTTP requests may be sent. Set `maxRetries` to 0 to disable retries.
If you create your own HTTP client and pass it to the root client, you must add the desired middlewares yourself. Here's how you would add the `RetryMiddleware` to a custom HTTP client:
`php $handlerStack = HandlerStack::create(); $handlerStack->push(RetryMiddleware::create()); $httpClient = new Client(['handler' => $handlerStack]); $client = new FooClient(['client' => $client]); `

## 0.3.2

**`(internal):`** Upgrade to IRv55 to recognize nullable types.

## 0.3.1

**`(fix):`** Improve multiline parameter docs by writing them above the tag, e.g.

**`class UpdateUserRequest extends JsonSerializableType {`**

````php class UpdateUserRequest extends JsonSerializableType {
    /**
    * The user to update.
    *
    * See [User](https://acme.co/user) for more information.
    *
    * @var ?User $user
    */
    public ?User $user;
} ```

**`(fix):`** Add .idea to the generated .gitignore file.

````