Skip to content

Commit b59bae0

Browse files
committed
fixed bug in translator
1 parent 7470b80 commit b59bae0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Formatter/Specialised/HttpOGMTranslator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function translateObject(stdClass $value, HttpMetaInfo $meta): array
168168
$node = $meta->currentNode();
169169
if ($node && json_encode($value, JSON_THROW_ON_ERROR) === json_encode($node->properties, JSON_THROW_ON_ERROR)) {
170170
$meta = $meta->incrementMeta();
171-
$map = $this->translateProperties($node->properties);
171+
$map = $this->translateProperties((array) $node->properties);
172172

173173
return [new Node((int) $node->id, new CypherList($node->labels), $map), $meta];
174174
}
@@ -203,13 +203,14 @@ private function translateProperties(array $properties): CypherMap
203203

204204
/**
205205
* @psalm-suppress MixedArgument
206+
* @psalm-suppress MixedArgumentTypeCoercion
206207
*
207208
* @return array{0: Relationship, 1: HttpMetaInfo}
208209
*/
209210
private function relationship(stdClass $relationship, HttpMetaInfo $meta): array
210211
{
211212
$meta = $meta->incrementMeta();
212-
$map = $this->translateProperties($relationship->properties);
213+
$map = $this->translateProperties((array) $relationship->properties);
213214

214215
$tbr = new Relationship(
215216
(int) $relationship->id,

0 commit comments

Comments
 (0)