Skip to content

Commit

Permalink
Merge pull request #2 from renttek/26543/php-81
Browse files Browse the repository at this point in the history
PHP 8.1 - Pass empty array if bind is null
  • Loading branch information
flancer64 authored Jan 31, 2023
2 parents 26751a1 + 3ce4e3c commit 56986e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Repo/Dao/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function getSet(
$query->limit($limit, $offset);
}

$rs = $conn->fetchAll($query, $bind);
$rs = $conn->fetchAll($query, $bind ?? []);
foreach ($rs as $one) {
$entity = $this->composeEntity($one);
$result[] = $entity;
Expand Down

0 comments on commit 56986e0

Please sign in to comment.