diff --git a/libraries/classes/ConfigStorage/Relation.php b/libraries/classes/ConfigStorage/Relation.php index e847014a7a..bf96fecba5 100644 --- a/libraries/classes/ConfigStorage/Relation.php +++ b/libraries/classes/ConfigStorage/Relation.php @@ -977,7 +977,7 @@ class Relation * @return array data about the foreign keys * @psalm-return array{ * foreign_link: bool, - * the_total: mixed, + * the_total: int|string|null, * foreign_display: string, * disp_row: list|null, * foreign_field: mixed diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e4dfa84282..6a96c19d27 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -666,7 +666,7 @@ parameters: path: libraries/classes/ConfigStorage/Relation.php - - message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getForeignData\\(\\) should return array\\{foreign_link\\: bool, the_total\\: mixed, foreign_display\\: string, disp_row\\: array\\\\|null, foreign_field\\: mixed\\} but returns array\\{foreign_link\\: bool, the_total\\: int\\|string\\|null, foreign_display\\: string, disp_row\\: array\\\\>\\|null, foreign_field\\: mixed\\}\\.$#" + message: "#^Method PhpMyAdmin\\\\ConfigStorage\\\\Relation\\:\\:getForeignData\\(\\) should return array\\{foreign_link\\: bool, the_total\\: int\\|string\\|null, foreign_display\\: string, disp_row\\: array\\\\|null, foreign_field\\: mixed\\} but returns array\\{foreign_link\\: bool, the_total\\: int\\|string\\|null, foreign_display\\: string, disp_row\\: array\\\\>\\|null, foreign_field\\: mixed\\}\\.$#" count: 1 path: libraries/classes/ConfigStorage/Relation.php @@ -9360,11 +9360,6 @@ parameters: count: 1 path: test/classes/Gis/GisPolygonTest.php - - - message: "#^Method PhpMyAdmin\\\\Tests\\\\Gis\\\\GisPolygonTest\\:\\:providerForTestGetPointOnSurface\\(\\) should return array\\ but returns array\\{array\\{mixed\\}, array\\{mixed\\}\\}\\.$#" - count: 1 - path: test/classes/Gis/GisPolygonTest.php - - message: "#^Casting to string something that's already string\\.$#" count: 1 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index deeada0dea..76ca75092f 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + $matches[1] @@ -26,15 +26,6 @@ - - $arguments - $arguments - $arguments - $arguments - $arguments - $arguments - $arguments - @@ -319,6 +310,9 @@ + + md5($verboseToLower) === $serverToLower + @@ -712,6 +706,11 @@ $tableNameReplacements + + + ]]> + + $foreignLink, 'the_total' => $theTotal, @@ -719,17 +718,7 @@ 'disp_row' => $dispRow, 'foreign_field' => $foreignField, ]]]> - - - ]]> - |null, - * foreign_field: mixed - * }]]> - + @@ -814,6 +803,15 @@ $foreigners[$column] + + |null, + * foreign_field: mixed + * }]]> + @@ -4616,9 +4614,6 @@ escapeString escapeString - - [$fieldCount, $fieldPrimary, $fieldIndex, $fieldUnique, $fieldFullText, $fieldSpatial] - $fieldPrimary[0] @@ -4676,9 +4671,10 @@ - + + [$fieldCount, $fieldPrimary, $fieldIndex, $fieldUnique, $fieldFullText, $fieldSpatial] array{int, array, array, array, array, array} - + @@ -6104,16 +6100,12 @@ >]]> ]]> - - result->fetch_all(), 0)]]> - ]]> + result->fetch_all(), 0)]]> result->fetch_all(), 1, 0)]]> - - ]]> - + @@ -6442,7 +6434,6 @@ $afterCount $posNext $preCount - $sortedColumnMessage $total @@ -8806,14 +8797,6 @@ $subpartitionCount $subpartitions - - $subpartitions[$j] - - - $subpartitions[$j] - $subpartitions[$j] - - $partitionCount @@ -9368,6 +9351,11 @@ + + + + + @@ -9542,9 +9530,6 @@ - - key->columns]]> - @@ -9635,6 +9620,7 @@ + key->columns]]> references->columns]]> @@ -10460,6 +10446,8 @@ $cellAttrs + $sheets + $text @@ -10467,6 +10455,9 @@ + + count + string[] @@ -10622,9 +10613,6 @@ $tables[$i][Import::TBL_NAME] - - - @@ -10637,12 +10625,14 @@ + + attributes + children + count + string[] - - SimpleXMLElement - $val3 @@ -11836,9 +11826,6 @@ - - $output - @@ -11853,9 +11840,10 @@ - + + $output - + $host @@ -11935,9 +11923,6 @@ $value - - response - @@ -13312,12 +13297,12 @@ + + + $filesizeInfo - - - return false; @@ -13854,20 +13839,24 @@ $decoded + + + array{fmt: string, attStmt: mixed[], authData: string} + + $clientData['type'], 'challenge' => $clientData['challenge'], 'origin' => $clientData['origin'], ]]]> - - + + - array{fmt: string, attStmt: mixed[], authData: string} - + @@ -13908,9 +13897,6 @@ $service $serviceName - - declare(strict_types=1); - @@ -14626,18 +14612,15 @@ - - - - - ]]> - + + testGetPointOnSurface + @@ -15494,6 +15477,14 @@ mixed[] + + + $end + $start + + + + string diff --git a/test/classes/Gis/GisPolygonTest.php b/test/classes/Gis/GisPolygonTest.php index 8baf853571..d5823ab822 100644 --- a/test/classes/Gis/GisPolygonTest.php +++ b/test/classes/Gis/GisPolygonTest.php @@ -220,7 +220,7 @@ class GisPolygonTest extends GisGeomTestCase /** * data provider for testGetPointOnSurface * - * @return array + * @return list{list{mixed}, list{mixed}} */ public static function providerForTestGetPointOnSurface(): array {