Skip to content

Commit fe48568

Browse files
Wout Gevaerttransistive
authored andcommitted
Some changes in where incrementMeta is called in HttpOGMTranslator
Fixes the following queries: RETURN "foo" AS somethingThatIsNowHandledCorrectly, point({x:5,y:5}) AS somethingThatIsNowFormattedCorrectly; RETURN [5] AS somethingThatIsNowHandledCorrectly, point({x:5,y:5}) AS somethingThatIsNowFormattedCorrectly;
1 parent 2cc57d2 commit fe48568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Formatter/Specialised/HttpOGMTranslator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private function translateCypherList(array $value, HttpMetaInfo $meta): array
240240
$tbr[] = $x;
241241
}
242242

243-
return [new CypherList($tbr), $meta->incrementMeta()];
243+
return [new CypherList($tbr), $meta];
244244
}
245245

246246
/**
@@ -347,7 +347,7 @@ public function translateString(string $value, HttpMetaInfo $meta): array
347347
$tbr = [$this->translateLocalTime($value), $meta];
348348
break;
349349
default:
350-
$tbr = [$value, $meta];
350+
$tbr = [$value, $meta->incrementMeta()];
351351
break;
352352
}
353353

0 commit comments

Comments
 (0)