Skip to content

Commit 9666756

Browse files
authored
Replace extra substr() call
This was possible after a $newkey assignment was introduced in bd9ef30
1 parent fafc6f4 commit 9666756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ private function aliasIdForQuery(array $values, bool $root = true): array
18931893
throw new InvalidArgumentException(sprintf('Cannot have both "%s" and "%s" fields.', $key, $newkey));
18941894
}
18951895

1896-
$values[substr($key, 0, -3) . '._id'] = $value;
1896+
$values[$newkey] = $value;
18971897
unset($values[$key]);
18981898
}
18991899
}

0 commit comments

Comments
 (0)