Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2724144

Browse files
authored
Replace extra substr() call (#3430)
This was possible after a $newkey assignment was introduced in bd9ef30
1 parent 3362948 commit 2724144

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
@@ -1896,7 +1896,7 @@ private function aliasIdForQuery(array $values, bool $root = true): array
18961896
throw new InvalidArgumentException(sprintf('Cannot have both "%s" and "%s" fields.', $key, $newkey));
18971897
}
18981898

1899-
$values[substr($key, 0, -3) . '._id'] = $value;
1899+
$values[$newkey] = $value;
19001900
unset($values[$key]);
19011901
}
19021902
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /