Skip to content

Commit 145f4e2

Browse files
committed
Fixed foreach that uses the wrong variable
1 parent 2fef25d commit 145f4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Factory/Lookup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function compile(array $config): SQL\Factory\Repository\Lookup
125125
);
126126

127127
if (\array_key_exists('parameters', $alternative)) {
128-
foreach ($config['parameters'] as $key => $parameter) {
128+
foreach ($alternative['parameters'] as $key => $parameter) {
129129
match (\array_key_exists('type', $parameter) ? $parameter['type'] : null) {
130130
'integer' => $alternativeBuilder->addIntegerParam(
131131
$key,

0 commit comments

Comments
 (0)