Skip to content

Commit 81afcec

Browse files
committed
Fix PHP 8.1 types
1 parent cc536fd commit 81afcec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function addOptions($options)
158158
public function andFilterCompare($name, $value, $defaultOperator = '=')
159159
{
160160
$matches = [];
161-
if (preg_match('/^(<>|>=|>|<=|<|=)/', $value, $matches)) {
161+
if (preg_match('/^(<>|>=|>|<=|<|=)/', (string)$value, $matches)) {
162162
$op = $matches[1];
163163
$value = substr($value, strlen($op));
164164
} else {

0 commit comments

Comments
 (0)