Reset phpstan baseline

This commit is contained in:
MarkBaker
2022-02-13 22:26:35 +01:00
parent c05dd63c1e
commit c7cbdf658c
+67 -57
View File
@@ -55,6 +55,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Calculation/Calculation.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 6
path: src/PhpSpreadsheet/Calculation/Calculation.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Calculation\\:\\:_translateFormulaToEnglish\\(\\) has no return type specified\\.$#"
count: 1
@@ -152,7 +157,7 @@ parameters:
-
message: "#^Parameter \\#1 \\$str of function trim expects string, null given\\.$#"
count: 2
count: 1
path: src/PhpSpreadsheet/Calculation/Calculation.php
-
@@ -790,51 +795,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\LookupRef\\\\Formula\\:\\:text\\(\\) should return string but returns mixed\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Formula.php
-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Formula.php
-
message: "#^Parameter \\#1 \\$lookupArray of static method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\LookupRef\\\\HLookup\\:\\:convertLiteralArray\\(\\) expects array, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/HLookup.php
-
message: "#^Parameter \\#1 \\$textValue of static method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:strToLower\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/HLookup.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Helpers.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, mixed given\\.$#"
count: 2
path: src/PhpSpreadsheet/Calculation/LookupRef/Hyperlink.php
-
message: "#^Parameter \\#1 \\$tooltip of method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Hyperlink\\:\\:setTooltip\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Hyperlink.php
-
message: "#^Parameter \\#1 \\$url of method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Hyperlink\\:\\:setUrl\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Hyperlink.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\LookupRef\\\\Indirect\\:\\:INDIRECT\\(\\) should return array\\|string but returns mixed\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Indirect.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\LookupRef\\\\Lookup\\:\\:verifyResultVector\\(\\) has no return type specified\\.$#"
count: 1
@@ -870,6 +835,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Matrix.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Offset.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\LookupRef\\\\Offset\\:\\:adjustEndCellColumnForWidth\\(\\) has no return type specified\\.$#"
count: 1
@@ -910,9 +880,14 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Calculation/LookupRef/Offset.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 2
path: src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php
-
message: "#^Parameter \\#1 \\$columnAddress of static method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Coordinate\\:\\:columnIndexFromString\\(\\) expects string, string\\|null given\\.$#"
count: 3
count: 4
path: src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php
-
@@ -1345,21 +1320,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Cell/Cell.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Cell\\:\\:getFormulaAttributes\\(\\) has no return type specified\\.$#"
count: 1
path: src/PhpSpreadsheet/Cell/Cell.php
-
message: "#^Parameter \\#2 \\$format of static method PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\NumberFormat\\:\\:toFormattedString\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/PhpSpreadsheet/Cell/Cell.php
-
message: "#^Parameter \\#4 \\$value of method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Cell\\:\\:processArrayResult\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/PhpSpreadsheet/Cell/Cell.php
-
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Cell\\:\\:\\$parent \\(PhpOffice\\\\PhpSpreadsheet\\\\Collection\\\\Cells\\) in isset\\(\\) is not nullable\\.$#"
count: 6
@@ -1375,6 +1340,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Cell/Coordinate.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 2
path: src/PhpSpreadsheet/Cell/Coordinate.php
-
message: "#^Cannot use array destructuring on array\\|null\\.$#"
count: 1
@@ -1555,6 +1525,11 @@ parameters:
count: 2
path: src/PhpSpreadsheet/Chart/DataSeries.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:refresh\\(\\) has parameter \\$flatten with no type specified\\.$#"
count: 1
@@ -2215,6 +2190,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Reader/BaseReader.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Reader/Gnumeric.php
-
message: "#^Comparison operation \"\\<\" between int and SimpleXMLElement\\|null results in an error\\.$#"
count: 2
@@ -2310,6 +2290,11 @@ parameters:
count: 2
path: src/PhpSpreadsheet/Reader/Ods.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Reader/Ods/DefinedNames.php
-
message: "#^Cannot call method getElementsByTagNameNS\\(\\) on DOMElement\\|null\\.$#"
count: 3
@@ -2535,6 +2520,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Reader/Xls.php
-
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<string\\>\\|string given\\.$#"
count: 1
path: src/PhpSpreadsheet/Reader/Xls.php
-
message: "#^Parameter \\#2 \\$row of method PhpOffice\\\\PhpSpreadsheet\\\\Reader\\\\IReadFilter\\:\\:readCell\\(\\) expects int, string given\\.$#"
count: 1
@@ -2730,6 +2720,11 @@ parameters:
count: 2
path: src/PhpSpreadsheet/Reader/Xlsx.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 2
path: src/PhpSpreadsheet/Reader/Xlsx.php
-
message: "#^Comparison operation \"\\>\" between SimpleXMLElement\\|null and 0 results in an error\\.$#"
count: 1
@@ -2920,11 +2915,6 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Reader/Xlsx.php
-
message: "#^Parameter \\#1 \\$worksheetName of method PhpOffice\\\\PhpSpreadsheet\\\\Spreadsheet\\:\\:getSheetByName\\(\\) expects string, array\\|string given\\.$#"
count: 1
path: src/PhpSpreadsheet/Reader/Xlsx.php
-
message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, int\\|string given\\.$#"
count: 2
@@ -4565,6 +4555,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Style/NumberFormat/PercentageFormatter.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Worksheet/AutoFilter.php
-
message: "#^Cannot call method getCell\\(\\) on PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\|null\\.$#"
count: 1
@@ -5265,6 +5260,11 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Writer/Xls/Font.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 2
path: src/PhpSpreadsheet/Writer/Xls/Parser.php
-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\Xls\\\\Parser\\:\\:advance\\(\\) has no return type specified\\.$#"
count: 1
@@ -5645,6 +5645,11 @@ parameters:
count: 2
path: src/PhpSpreadsheet/Writer/Xlsx/Comments.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Writer/Xlsx/DefinedNames.php
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
@@ -5855,6 +5860,11 @@ parameters:
count: 7
path: src/PhpSpreadsheet/Writer/Xlsx/Workbook.php
-
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
count: 1
path: src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1