File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
src/FreeElephants/JsonApi/DTO Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 0.0.5] - 2025-03-24
10
+
11
+ ### Fixed
12
+ - Check nullable input id value in Resource Object
13
+
9
14
## [ 0.0.4] - 2025-03-20
10
15
11
16
### Changed
@@ -27,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
32
### Added
28
33
- Extract all DTO types from FreeElephants/json-api-php-toolkit to this project
29
34
30
- [ Unreleased ] : https://github.com/FreeElephants/json-api-dto/compare/0.0.4...HEAD
35
+ [ Unreleased ] : https://github.com/FreeElephants/json-api-dto/compare/0.0.5...HEAD
36
+ [ 0.0.5 ] : https://github.com/FreeElephants/json-api-dto/releases/tag/0.0.5
31
37
[ 0.0.4 ] : https://github.com/FreeElephants/json-api-dto/releases/tag/0.0.4
32
38
[ 0.0.3 ] : https://github.com/FreeElephants/json-api-dto/releases/tag/0.0.3
33
39
[ 0.0.2 ] : https://github.com/FreeElephants/json-api-dto/releases/tag/0.0.2
Original file line number Diff line number Diff line change 21
21
},
22
22
"suggest" : {
23
23
"free-elephants/di" : " *" ,
24
- "nyholm/psr7" : " ^1.2"
24
+ "nyholm/psr7" : " ^1.2" ,
25
+ "zircote/swagger-php" : " *"
25
26
},
26
27
"autoload" : {
27
28
"psr-4" : {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class AbstractResourceObject
15
15
16
16
public function __construct (array $ data )
17
17
{
18
- $ this ->id = $ data ['id ' ];
18
+ $ this ->id = $ data ['id ' ] ?? null ;
19
19
$ this ->type = $ data ['type ' ];
20
20
21
21
$ concreteClass = new \ReflectionClass ($ this );
You can’t perform that action at this time.
0 commit comments