Skip to content

Commit

Permalink
Add @psalm-return
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
  • Loading branch information
kamil-tekiela committed Mar 22, 2023
1 parent fa5cb8a commit 4feeeb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions libraries/classes/Util.php
Expand Up @@ -704,6 +704,7 @@ private static function getConditionValue(
* @psalm-param array<int, mixed> $row
*
* @return array the calculated condition and whether condition is unique
* @psalm-return array{string, bool, array}
*/
public static function getUniqueCondition(
int $fieldsCount,
Expand Down
15 changes: 0 additions & 15 deletions psalm-baseline.xml
Expand Up @@ -4492,7 +4492,6 @@
<code><![CDATA[$this->columnNullFlags[$column_index]]]></code>
<code><![CDATA[$this->originalColumnTypes[$column_index]]]></code>
<code>$type</code>
<code>$uniqueCondition</code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code>$key</code>
Expand All @@ -4505,8 +4504,6 @@
<code>$collation</code>
<code>$columnName</code>
<code>$is_unsigned</code>
<code><![CDATA[$row['where_clause']]]></code>
<code>$tmpData[$dataLabel]</code>
<code>$type</code>
</MixedAssignment>
<PossiblyFalseArgument>
Expand Down Expand Up @@ -6340,8 +6337,6 @@
<code>$clause</code>
<code>$clause</code>
<code>$clause</code>
<code>$clauseIsUnique</code>
<code>$clauseIsUnique</code>
<code>$colOrder</code>
<code>$colVisib</code>
<code>$colVisib</code>
Expand Down Expand Up @@ -6373,8 +6368,6 @@
<code>$sqlQuery</code>
<code><![CDATA[$statementInfo->statement->from]]></code>
<code><![CDATA[$urlParams['where_clause']]]></code>
<code>$whereClause</code>
<code>$whereClause</code>
<code><![CDATA[$whereClauseMap[$rowNumber][$meta->orgtable]]]></code>
<code><![CDATA[(int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']]]></code>
<code><![CDATA[(int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']]]></code>
Expand Down Expand Up @@ -6571,12 +6564,9 @@
<code>$sqlQueryAdd</code>
<code>$tableCreateTime</code>
<code>$value</code>
<code><![CDATA[$whereClauseMap[$rowNumber][$meta->orgtable]]]></code>
<code><![CDATA[$whereClauseMap[$rowNumber][$this->properties['table']]]]></code>
</MixedAssignment>
<MixedInferredReturnType>
<code>Message</code>
<code>bool</code>
</MixedInferredReturnType>
<MixedMethodCall>
<code>new $className()</code>
Expand All @@ -6603,9 +6593,6 @@
<code><![CDATA[$statementInfo->statement->from[0]->table]]></code>
<code><![CDATA[$statementInfo->statement->limit->offset]]></code>
</MixedPropertyFetch>
<MixedReturnStatement>
<code>$clauseIsUnique</code>
</MixedReturnStatement>
<MixedReturnTypeCoercion>
<code>$map</code>
<code><![CDATA[[
Expand Down Expand Up @@ -8193,7 +8180,6 @@
<code><![CDATA[$mimeMap[$tableColumn['Field']]]]></code>
</MixedArrayOffset>
<MixedAssignment>
<code><![CDATA[$_SESSION['edit_next']]]></code>
<code><![CDATA[$column['pma_type']]]></code>
<code>$currCellEditedValues</code>
<code><![CDATA[$currentRow[$column['Field']]]]></code>
Expand Down Expand Up @@ -9914,7 +9900,6 @@
<code><![CDATA[$column['Type']]]></code>
<code><![CDATA[$definition['Type']]]></code>
<code><![CDATA[$statement->entityOptions->has('AUTO_INCREMENT')]]></code>
<code>$tmpUniqueCondition</code>
<code><![CDATA[$trigger['drop']]]></code>
</MixedOperand>
<MixedPropertyTypeCoercion>
Expand Down

0 comments on commit 4feeeb0

Please sign in to comment.