Skip to content

Commit b1cc7ce

Browse files
committed
PHP 8.0 fix
1 parent 609a787 commit b1cc7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/r.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function rq(string $query, array $params, bool $exit = true, int $level = 0, boo
2121
foreach ($params as $key => $value) {
2222
$query = \str_replace(
2323
\sprintf(':%s', $key),
24-
\sprintf('"%s"', \str_replace('"', '\\"', $value)),
24+
\sprintf('"%s"', \str_replace('"', '\\"', (string) $value)),
2525
$query
2626
);
2727
}

0 commit comments

Comments
 (0)