Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Formatter/Specialised/BoltOGMTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private function makeFromBoltPath(BoltPath $path): Path
$relationships[] = $this->makeFromBoltUnboundRelationship($rel);
}
/** @var list<int> $ids */
$ids = $path->ids;
$ids = $path->indices;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful with this. Please confirm if our current minimum installable bolt version still uses ids instead of indices. In that case, we'll have to upgrade the minimum installable bolt version

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this — I checked the current constraint (^7.1.4) and confirmed the minimum installable bolt version still uses Path::$ids only. Path::$indices was added in 7.4.0, so using indices here would break 7.1.4–7.3.x unless we bump the minimum bolt version. I can either revert back to ids or bump the constraint to ^7.4.0, whichever you’d prefer.


return new Path(
new CypherList($nodes),
Expand Down
2 changes: 1 addition & 1 deletion testkit
Loading