Skip to content

Commit 81b4253

Browse files
committed
fix: correct condition check for named parameters in Interpolator
1 parent 3d7ee35 commit 81b4253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Interpolator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static function ($match) use (&$named, &$unnamed, $options) {
5555
$value = \current($unnamed);
5656
\next($unnamed);
5757
return self::resolveValue($value, $options);
58-
case isset($named[$key]) || \array_key_exists($key, $named):
58+
case isset($key) && \array_key_exists($key, $named):
5959
return self::resolveValue($named[$key], $options);
6060
default:
6161
return $match[0];

0 commit comments

Comments
 (0)