We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9571b commit b461210Copy full SHA for b461210
src/FreeElephants/JsonApi/DTO/AbstractResourceObject.php
@@ -15,7 +15,7 @@ class AbstractResourceObject
15
16
public function __construct(array $data)
17
{
18
- $this->id = $data['id'];
+ $this->id = $data['id'] ?? null;
19
$this->type = $data['type'];
20
21
$concreteClass = new \ReflectionClass($this);
0 commit comments