Skip to content

Commit 6e2140a

Browse files
committed
docs: replace type mixed in DB Utils
1 parent 98239ad commit 6e2140a

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

system/Database/BaseUtils.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ public function getXMLFromResult(ResultInterface $query, array $params = []): st
260260
*
261261
* @param array|string $params
262262
*
263-
* @return mixed
263+
* @return false|string|void
264+
* @phpstan-return false|string|never
264265
*
265266
* @throws DatabaseException
266267
*/
@@ -316,7 +317,8 @@ public function backup($params = [])
316317
/**
317318
* Platform dependent version of the backup function.
318319
*
319-
* @return mixed
320+
* @return false|string|void
321+
* @phpstan-return false|string|never
320322
*/
321323
abstract public function _backup(?array $prefs = null);
322324
}

system/Database/MySQLi/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class Utils extends BaseUtils
3636
/**
3737
* Platform dependent version of the backup function.
3838
*
39-
* @return mixed
39+
* @return void
40+
* @phpstan-return never
4041
*/
4142
public function _backup(?array $prefs = null)
4243
{

system/Database/OCI8/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class Utils extends BaseUtils
2929
/**
3030
* Platform dependent version of the backup function.
3131
*
32-
* @return mixed
32+
* @return void
33+
* @phpstan-return never
3334
*/
3435
public function _backup(?array $prefs = null)
3536
{

system/Database/Postgre/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class Utils extends BaseUtils
3636
/**
3737
* Platform dependent version of the backup function.
3838
*
39-
* @return mixed
39+
* @return void
40+
* @phpstan-return never
4041
*/
4142
public function _backup(?array $prefs = null)
4243
{

system/Database/SQLSRV/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function __construct(ConnectionInterface $db)
4444
/**
4545
* Platform dependent version of the backup function.
4646
*
47-
* @return mixed
47+
* @return void
48+
* @phpstan-return never
4849
*/
4950
public function _backup(?array $prefs = null)
5051
{

system/Database/SQLite3/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class Utils extends BaseUtils
2929
/**
3030
* Platform dependent version of the backup function.
3131
*
32-
* @return mixed
32+
* @return void
33+
* @phpstan-return never
3334
*/
3435
public function _backup(?array $prefs = null)
3536
{

0 commit comments

Comments
 (0)