Skip to content

Commit 2136f14

Browse files
author
David Nahodyl
committed
changed Arr::map to support laravel 7/8
1 parent 30910bc commit 2136f14

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,12 @@ protected function computeWhereIns()
542542
return;
543543
}
544544

545-
$this->wheres = Arr::map(Arr::crossJoin($this->wheres, ...$whereIns), function ($conditions) {
545+
$arr = Arr::crossJoin($this->wheres, ...$whereIns);
546+
$function = function ($conditions) {
546547
return array_merge(...array_values($conditions));
547-
});
548+
};
549+
550+
$this->wheres = array_map($function, $arr);
548551
}
549552

550553
/**

0 commit comments

Comments
 (0)