Skip to content

Commit a2c289a

Browse files
Wout Gevaerttransistive
authored andcommitted
Fix use statements
1 parent 33ed678 commit a2c289a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Formatter/Specialised/JoltHttpOGMTranslator.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
use Laudis\Neo4j\Types\CypherList;
2222
use Laudis\Neo4j\Types\CypherMap;
2323
use Laudis\Neo4j\Types\Node;
24-
use Laudis\Neo4j\Types\Relation;
24+
use Laudis\Neo4j\Types\Path;
25+
use Laudis\Neo4j\Types\Relationship;
2526
use Laudis\Neo4j\Types\WGS843DPoint;
2627
use Laudis\Neo4j\Types\WGS84Point;
2728
use Psr\Http\Message\RequestInterface;
@@ -55,8 +56,8 @@ public function __construct()
5556
'[]' => fn (array $value): CypherList => $this->translateList($value),
5657
'{}' => fn (stdClass $value): CypherMap => $this->translateMap($value),
5758
'()' => fn (array $value): Node => new Node($value[0], new CypherList($value[1]), $this->translateMap($value[2])),
58-
'->' => fn (array $value): Relation => new Relation($value[0], $value[1], $value[3], $value[2], $this->translateMap($value[4])),
59-
'<-' => fn (array $value): Relation => new Relation($value[0], $value[3], $value[1], $value[2], $this->translateMap($value[4])),
59+
'->' => fn (array $value): Relationship => new Relationship($value[0], $value[1], $value[3], $value[2], $this->translateMap($value[4])),
60+
'<-' => fn (array $value): Relationship => new Relationship($value[0], $value[3], $value[1], $value[2], $this->translateMap($value[4])),
6061
'..' => fn (array $value): Path => $this->translatePath($value),
6162
];
6263
}

0 commit comments

Comments
 (0)