Skip to content

Commit 42fe3a9

Browse files
authored
Merge pull request #4 from developerstudservis/nullable-RO-id
Make id nullable
2 parents cfe6122 + 7c9571b commit 42fe3a9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
- AbstractResourceObject::$id may be nullable for server-side id generation.
11+
912
## [0.0.3] - 2025-03-18
1013

1114
### Added

src/FreeElephants/JsonApi/DTO/AbstractResourceObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class AbstractResourceObject
1212
{
13-
public string $id;
13+
public ?string $id = null;
1414
public string $type;
1515

1616
public function __construct(array $data)

0 commit comments

Comments
 (0)