Skip to content

Commit af84434

Browse files
author
n.gnato
committed
Make id nullable
1 parent cfe6122 commit af84434

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 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)