From dae7bb5e8043ce83d69b3fb375411ae5e71039b0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Dec 2023 11:02:50 +0100 Subject: [PATCH] Fix phpstan --- htdocs/core/db/DoliDB.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index 081976ebc2b..206bac677a4 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -116,10 +116,10 @@ abstract class DoliDB implements Database * * @param string $subject string tested * @param string $pattern SQL pattern to match - * @param string $sqlstring whether or not the string being tested is an SQL expression + * @param int $sqlstring whether or not the string being tested is an SQL expression * @return string SQL string */ - public function regexpsql($subject, $pattern, $sqlstring = false) + public function regexpsql($subject, $pattern, $sqlstring = 0) { if ($sqlstring) { return "(". $subject ." REGEXP '" . $pattern . "')"; @@ -158,7 +158,7 @@ abstract class DoliDB implements Database * * @param string $stringtosanitize String to escape * @param int $allowsimplequote 1=Allow simple quotes in string. When string is used as a list of SQL string ('aa', 'bb', ...) - * @param string $allowsequals 1=Allow equals sign + * @param int $allowsequals 1=Allow equals sign * @return string String escaped */ public function sanitize($stringtosanitize, $allowsimplequote = 0, $allowsequals = 0)