Skip to content

Commit

Permalink
Fixed for 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk committed Jul 2, 2021
1 parent d6503ae commit 8f8f0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Db/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public static function findWhere(...$where): array
$whereAndTerms[] = $self->name . '.' . $keyName . ' IN (' . $keyValue . ')';
} elseif (null === $keyValue) {
$whereAndTerms[] = $self->name . '.' . $keyName . ' IS NULL';
} elseif ('%' === $keyValue{0} || '%' === $keyValue{-1}) {
} elseif (is_string($keyValue) && ('%' === $keyValue{0} || '%' === $keyValue{-1})) {
$whereAndTerms[] = $self->name . '.' . $keyName . ' LIKE ?';
$whereParams[] = $keyValue;
} else {
Expand Down

0 comments on commit 8f8f0d2

Please sign in to comment.