Skip to content

Commit 87a2f47

Browse files
author
MarkBaker
committed
Initial work on refactoring branch pruning logic
1 parent a7a48bf commit 87a2f47

File tree

5 files changed

+317
-231
lines changed

5 files changed

+317
-231
lines changed

phpstan-baseline.neon

-50
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ parameters:
9595
count: 1
9696
path: src/PhpSpreadsheet/Calculation/Calculation.php
9797

98-
-
99-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Calculation\\:\\:getUnusedBranchStoreKey\\(\\) has no return type specified\\.$#"
100-
count: 1
101-
path: src/PhpSpreadsheet/Calculation/Calculation.php
102-
10398
-
10499
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Calculation\\:\\:localeFunc\\(\\) has no return type specified\\.$#"
105100
count: 1
@@ -165,11 +160,6 @@ parameters:
165160
count: 1
166161
path: src/PhpSpreadsheet/Calculation/Calculation.php
167162

168-
-
169-
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Calculation\\:\\:\\$branchPruningEnabled has no type specified\\.$#"
170-
count: 1
171-
path: src/PhpSpreadsheet/Calculation/Calculation.php
172-
173163
-
174164
message: "#^Property PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Calculation\\:\\:\\$cellStack has no type specified\\.$#"
175165
count: 1
@@ -245,11 +235,6 @@ parameters:
245235
count: 1
246236
path: src/PhpSpreadsheet/Calculation/Calculation.php
247237

248-
-
249-
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
250-
count: 2
251-
path: src/PhpSpreadsheet/Calculation/Calculation.php
252-
253238
-
254239
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Database\\:\\:DMAX\\(\\) should return float but returns float\\|string\\|null\\.$#"
255240
count: 1
@@ -1180,41 +1165,6 @@ parameters:
11801165
count: 1
11811166
path: src/PhpSpreadsheet/Calculation/TextData/Text.php
11821167

1183-
-
1184-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has no return type specified\\.$#"
1185-
count: 1
1186-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1187-
1188-
-
1189-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$onlyIf with no type specified\\.$#"
1190-
count: 1
1191-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1192-
1193-
-
1194-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$onlyIfNot with no type specified\\.$#"
1195-
count: 1
1196-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1197-
1198-
-
1199-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$reference with no type specified\\.$#"
1200-
count: 1
1201-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1202-
1203-
-
1204-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$storeKey with no type specified\\.$#"
1205-
count: 1
1206-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1207-
1208-
-
1209-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$type with no type specified\\.$#"
1210-
count: 1
1211-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1212-
1213-
-
1214-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Token\\\\Stack\\:\\:getStackItem\\(\\) has parameter \\$value with no type specified\\.$#"
1215-
count: 1
1216-
path: src/PhpSpreadsheet/Calculation/Token/Stack.php
1217-
12181168
-
12191169
message: "#^Elseif branch is unreachable because previous condition is always true\\.$#"
12201170
count: 1

0 commit comments

Comments
 (0)