From 05abb3f483371efa1930340379dd23fb3e3a6cb9 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Fri, 19 Aug 2022 15:04:48 +0200 Subject: [PATCH] prevent php 8 complaining about null values Fix Deprecated: SQLite3::escapeString(): Passing null to parameter #1 ($string) of type string is deprecated --- code/SQLite3Connector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SQLite3Connector.php b/code/SQLite3Connector.php index 871294c..3c2c68f 100644 --- a/code/SQLite3Connector.php +++ b/code/SQLite3Connector.php @@ -170,7 +170,7 @@ class SQLite3Connector extends DBConnector public function escapeString($value) { - return $this->dbConn->escapeString($value); + return $this->dbConn->escapeString((string)$value); } public function selectDatabase($name)