Skip to content

Commit 20fbd06

Browse files
committed
fix(jsonapi): use skolem iris
1 parent 6391fe5 commit 20fbd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApi/Serializer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function normalize($object, $format = null, array $context = [])
102102
];
103103
} else {
104104
$resourceData = [
105-
'id' => \function_exists('spl_object_id') ? spl_object_id($object) : spl_object_hash($object),
105+
'id' => '/.well-known/genid/'.(bin2hex(random_bytes(10))),
106106
'type' => (new \ReflectionClass($this->getObjectClass($object)))->getShortName(),
107107
];
108108
}

0 commit comments

Comments
 (0)