From 4feeeb0c894b0f4e7d961e3a9d6fe0571b5e1d7a Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Wed, 22 Mar 2023 10:14:56 +0000 Subject: [PATCH] Add @psalm-return Signed-off-by: Kamil Tekiela --- libraries/classes/Util.php | 1 + psalm-baseline.xml | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/libraries/classes/Util.php b/libraries/classes/Util.php index 0b1a16801245..0d4cb8e56bb8 100644 --- a/libraries/classes/Util.php +++ b/libraries/classes/Util.php @@ -704,6 +704,7 @@ private static function getConditionValue( * @psalm-param array $row * * @return array the calculated condition and whether condition is unique + * @psalm-return array{string, bool, array} */ public static function getUniqueCondition( int $fieldsCount, diff --git a/psalm-baseline.xml b/psalm-baseline.xml index f8409231aeb0..5dc7ec2069a7 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -4492,7 +4492,6 @@ columnNullFlags[$column_index]]]> originalColumnTypes[$column_index]]]> $type - $uniqueCondition $key @@ -4505,8 +4504,6 @@ $collation $columnName $is_unsigned - - $tmpData[$dataLabel] $type @@ -6340,8 +6337,6 @@ $clause $clause $clause - $clauseIsUnique - $clauseIsUnique $colOrder $colVisib $colVisib @@ -6373,8 +6368,6 @@ $sqlQuery statement->from]]> - $whereClause - $whereClause orgtable]]]> properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']]]> properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']]]> @@ -6571,12 +6564,9 @@ $sqlQueryAdd $tableCreateTime $value - orgtable]]]> - properties['table']]]]> Message - bool new $className() @@ -6603,9 +6593,6 @@ statement->from[0]->table]]> statement->limit->offset]]> - - $clauseIsUnique - $map - $currCellEditedValues @@ -9914,7 +9900,6 @@ entityOptions->has('AUTO_INCREMENT')]]> - $tmpUniqueCondition