From 036a0a815537df0c1c9bee2f0315daa98529d1f5 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 27 Aug 2023 16:03:13 +0900 Subject: [PATCH] docs: replace type mixed in DB Utils --- system/Database/BaseUtils.php | 4 ++-- system/Database/MySQLi/Utils.php | 2 +- system/Database/OCI8/Utils.php | 2 +- system/Database/Postgre/Utils.php | 2 +- system/Database/SQLSRV/Utils.php | 2 +- system/Database/SQLite3/Utils.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/system/Database/BaseUtils.php b/system/Database/BaseUtils.php index b75a3b540003..d26bde154e02 100644 --- a/system/Database/BaseUtils.php +++ b/system/Database/BaseUtils.php @@ -260,7 +260,7 @@ public function getXMLFromResult(ResultInterface $query, array $params = []): st * * @param array|string $params * - * @return mixed + * @return false|never|string * * @throws DatabaseException */ @@ -316,7 +316,7 @@ public function backup($params = []) /** * Platform dependent version of the backup function. * - * @return mixed + * @return false|never|string */ abstract public function _backup(?array $prefs = null); } diff --git a/system/Database/MySQLi/Utils.php b/system/Database/MySQLi/Utils.php index 3fea64a0ebaf..08989f75dda8 100644 --- a/system/Database/MySQLi/Utils.php +++ b/system/Database/MySQLi/Utils.php @@ -36,7 +36,7 @@ class Utils extends BaseUtils /** * Platform dependent version of the backup function. * - * @return mixed + * @return never */ public function _backup(?array $prefs = null) { diff --git a/system/Database/OCI8/Utils.php b/system/Database/OCI8/Utils.php index 870306d8b8b1..2f3a3304ea3e 100644 --- a/system/Database/OCI8/Utils.php +++ b/system/Database/OCI8/Utils.php @@ -29,7 +29,7 @@ class Utils extends BaseUtils /** * Platform dependent version of the backup function. * - * @return mixed + * @return never */ public function _backup(?array $prefs = null) { diff --git a/system/Database/Postgre/Utils.php b/system/Database/Postgre/Utils.php index ba1df5d3b52a..516104ec951d 100644 --- a/system/Database/Postgre/Utils.php +++ b/system/Database/Postgre/Utils.php @@ -36,7 +36,7 @@ class Utils extends BaseUtils /** * Platform dependent version of the backup function. * - * @return mixed + * @return never */ public function _backup(?array $prefs = null) { diff --git a/system/Database/SQLSRV/Utils.php b/system/Database/SQLSRV/Utils.php index 22a12bcdf02a..ae52ae40a76b 100755 --- a/system/Database/SQLSRV/Utils.php +++ b/system/Database/SQLSRV/Utils.php @@ -44,7 +44,7 @@ public function __construct(ConnectionInterface $db) /** * Platform dependent version of the backup function. * - * @return mixed + * @return never */ public function _backup(?array $prefs = null) { diff --git a/system/Database/SQLite3/Utils.php b/system/Database/SQLite3/Utils.php index f0cc5dfcf2dc..b8f45dd54196 100644 --- a/system/Database/SQLite3/Utils.php +++ b/system/Database/SQLite3/Utils.php @@ -29,7 +29,7 @@ class Utils extends BaseUtils /** * Platform dependent version of the backup function. * - * @return mixed + * @return never */ public function _backup(?array $prefs = null) {