From 1eb81e9b2a0fa9e2c8428f1aaec4962d669a9cea Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 8 Jun 2023 09:26:18 +0700 Subject: [PATCH] [ticket/17142] Fix class inheritance issues PHPBB3-17142 --- phpBB/phpbb/db/driver/driver.php | 6 +----- phpBB/phpbb/db/driver/factory.php | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php index f64847db83..533a1dcf84 100644 --- a/phpBB/phpbb/db/driver/driver.php +++ b/phpBB/phpbb/db/driver/driver.php @@ -1247,11 +1247,7 @@ abstract class driver implements driver_interface } /** - * Ensure query ID can be used by cache - * - * @param resource|int|string $query_id Mixed type query id - * - * @return int|string Query id in string or integer format + * {@inheritDoc} */ public function clean_query_id($query_id) { diff --git a/phpBB/phpbb/db/driver/factory.php b/phpBB/phpbb/db/driver/factory.php index 2541c28481..4f2efcf57d 100644 --- a/phpBB/phpbb/db/driver/factory.php +++ b/phpBB/phpbb/db/driver/factory.php @@ -472,4 +472,12 @@ class factory implements driver_interface { return $this->get_driver()->sql_quote($msg); } + + /** + * {@inheritDoc} + */ + public function clean_query_id($query_id) + { + return $this->get_driver()->clean_query_id($query_id); + } }