Skip to content

Commit 4c46566

Browse files
author
MarkBaker
committed
Re-baseline
1 parent b1ca6ee commit 4c46566

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

phpstan-baseline.neon

+1-31
Original file line numberDiff line numberDiff line change
@@ -670,11 +670,6 @@ parameters:
670670
count: 2
671671
path: src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php
672672

673-
-
674-
message: "#^Parameter \\#1 \\$columnAddress of static method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\Coordinate\\:\\:columnIndexFromString\\(\\) expects string, string\\|null given\\.$#"
675-
count: 4
676-
path: src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php
677-
678673
-
679674
message: "#^Binary operation \"/\" between array\\|float\\|int\\|string and array\\|float\\|int\\|string results in an error\\.$#"
680675
count: 2
@@ -1120,26 +1115,6 @@ parameters:
11201115
count: 1
11211116
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
11221117

1123-
-
1124-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:refresh\\(\\) has parameter \\$flatten with no type specified\\.$#"
1125-
count: 1
1126-
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
1127-
1128-
-
1129-
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:\\$dataSource \\(string\\) does not accept string\\|null\\.$#"
1130-
count: 1
1131-
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
1132-
1133-
-
1134-
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:\\$dataTypeValues has no type specified\\.$#"
1135-
count: 1
1136-
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
1137-
1138-
-
1139-
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\DataSeriesValues\\:\\:\\$fillColor \\(array\\<string\\>\\|string\\) does not accept array\\<string\\>\\|string\\|null\\.$#"
1140-
count: 1
1141-
path: src/PhpSpreadsheet/Chart/DataSeriesValues.php
1142-
11431118
-
11441119
message: "#^Parameter \\#1 \\$angle of method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\GridLines\\:\\:setShadowAngle\\(\\) expects int, int\\|null given\\.$#"
11451120
count: 1
@@ -2036,7 +2011,7 @@ parameters:
20362011
path: src/PhpSpreadsheet/Reader/Xls.php
20372012

20382013
-
2039-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\<string\\>\\|string given\\.$#"
2014+
message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\<string\\>\\|string given\\.$#"
20402015
count: 1
20412016
path: src/PhpSpreadsheet/Reader/Xls.php
20422017

@@ -3625,11 +3600,6 @@ parameters:
36253600
count: 1
36263601
path: src/PhpSpreadsheet/Style/NumberFormat/PercentageFormatter.php
36273602

3628-
-
3629-
message: "#^Parameter \\#1 \\$format of function sprintf expects string, string\\|null given\\.$#"
3630-
count: 1
3631-
path: src/PhpSpreadsheet/Style/NumberFormat/PercentageFormatter.php
3632-
36333603
-
36343604
message: "#^Cannot use array destructuring on array\\<string\\>\\|string\\.$#"
36353605
count: 2

src/PhpSpreadsheet/Reader/Xls.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
12351235
// Bar!$A$1:$IV$2
12361236
$explodes = Worksheet::extractSheetTitle($range, true);
12371237
$sheetName = trim($explodes[0], "'");
1238-
if (count($explodes) == 2) {
1238+
if (count($explodes) === 2) {
12391239
if (strpos($explodes[1], ':') === false) {
12401240
$explodes[1] = $explodes[1] . ':' . $explodes[1];
12411241
}

0 commit comments

Comments
 (0)