1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/16955] Resolve incompatibilities with doctum

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-27 19:52:14 +01:00
parent eeeb69b4ae
commit cedd447659
6 changed files with 12 additions and 6 deletions

View File

@@ -21,7 +21,8 @@ class table_helper
*
* @param array $column_data Column data.
*
* @return array{string, array} A pair of type and array of column options.
* @return array<string, array> A pair of type and array of column options.
* @psalm-return array{string, array}
*/
public static function convert_column_data(array $column_data, string $dbms_layer): array
{

View File

@@ -54,7 +54,8 @@ class type_converter
*
* @param string $type Legacy type name
*
* @return array{string, array} Pair of type name and options.
* @return array<string, array> Pair of type name and options.
* @psalm-return array{string, array}
*/
public static function convert(string $type, string $dbms): array
{

View File

@@ -1102,7 +1102,8 @@ abstract class driver implements driver_interface
/**
* Return sql error array
*
* @return array{message: string, code: int|string} SQL error array with message and error code
* @return array SQL error array with message and error code
* @psalm-return array{message: string, code: int|string}
*/
abstract protected function _sql_error(): array;

View File

@@ -651,7 +651,8 @@ class migrator
* @param array $steps The steps to run
* @param bool|string $state Current state of the migration
* @param bool $revert true to revert a data step
* @return bool|array{result: mixed, step: int} migration state. True if completed, serialized array if not finished
* @return bool|array migration state. True if completed, serialized array if not finished
* @psalm-return bool|array{result: mixed, step: int}
* @throws \phpbb\db\migration\exception
*/
protected function process_data_step($steps, $state, $revert = false)