Skip to content

Commit cb3124e

Browse files
committed
Merge tag 'v3.1.1' into develop
Fix bug in document json-api property.
2 parents 34baffd + 30dbfe0 commit cb3124e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [3.1.1] - 2023-11-20
9+
10+
### Fixed
11+
12+
- [#5](https://github.com/laravel-json-api/encoder-neomerx/issues/5) Fix error with default value for `$jsonApi`
13+
property on the `Document` class.
14+
815
## [3.1.0] - 2023-11-08
916

1017
### Changed

src/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class Document implements JsonApiDocument
4040
/**
4141
* @var JsonApi|null
4242
*/
43-
private ?JsonApi $jsonApi;
43+
private ?JsonApi $jsonApi = null;
4444

4545
/**
4646
* @var Links|null

0 commit comments

Comments
 (0)