You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,15 @@ and this project adheres to [Semantic Versioning](https://semver.org).
19
19
- Added Worksheet visibility in Ods Writer [PR #2850](https://github.com/PHPOffice/PhpSpreadsheet/pull/2850)
20
20
- Allow Csv Reader to treat string as contents of file [Issue #1285](https://github.com/PHPOffice/PhpSpreadsheet/issues/1285)[PR #2792](https://github.com/PHPOffice/PhpSpreadsheet/pull/2792)
21
21
- Allow Csv Reader to store null string rather than leave cell empty [Issue #2840](https://github.com/PHPOffice/PhpSpreadsheet/issues/2840)[PR #2842](https://github.com/PHPOffice/PhpSpreadsheet/pull/2842)
22
+
- Provide new Worksheet methods to identify if a row or column is "empty", making allowance for different definitions of "empty":
23
+
- Treat rows/columns containing no cell records as empty (default)
24
+
- Treat cells containing a null value as empty
25
+
- Treat cells containing an empty string as empty
22
26
23
27
### Changed
24
28
29
+
- Better enforcement of value modification to match specified datatype when using setValueExplicit()
30
+
- Relax validation of merge cells to allow merge for a single cell reference [Issue #2776](https://github.com/PHPOffice/PhpSpreadsheet/issues/2776)
25
31
- Memory and speed improvements, particularly for the Cell Collection, and the Writers.
26
32
27
33
See [the Discussion section on github](https://github.com/PHPOffice/PhpSpreadsheet/discussions/2821) for details of performance across versions
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+2-82Lines changed: 2 additions & 82 deletions
Original file line number
Diff line number
Diff line change
@@ -1170,21 +1170,11 @@ parameters:
1170
1170
count:2
1171
1171
path:src/PhpSpreadsheet/Chart/DataSeries.php
1172
1172
1173
-
-
1174
-
message:"#^Parameter \\#1 \\$angle of method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\GridLines\\:\\:setShadowAngle\\(\\) expects int, int\\|null given\\.$#"
1175
-
count:1
1176
-
path:src/PhpSpreadsheet/Chart/GridLines.php
1177
-
1178
1173
-
1179
1174
message:"#^Parameter \\#1 \\$color of method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\GridLines\\:\\:setGlowColor\\(\\) expects string, string\\|null given\\.$#"
1180
1175
count:1
1181
1176
path:src/PhpSpreadsheet/Chart/GridLines.php
1182
1177
1183
-
-
1184
-
message:"#^Parameter \\#1 \\$distance of method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\GridLines\\:\\:setShadowDistance\\(\\) expects float, float\\|null given\\.$#"
1185
-
count:1
1186
-
path:src/PhpSpreadsheet/Chart/GridLines.php
1187
-
1188
1178
-
1189
1179
message:"#^Parameter \\#2 \\$alpha of method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\GridLines\\:\\:setGlowColor\\(\\) expects int, int\\|null given\\.$#"
1190
1180
count:1
@@ -1275,36 +1265,6 @@ parameters:
1275
1265
count:1
1276
1266
path:src/PhpSpreadsheet/Chart/Properties.php
1277
1267
1278
-
-
1279
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:getTrueAlpha\\(\\) has no return type specified\\.$#"
1280
-
count:1
1281
-
path:src/PhpSpreadsheet/Chart/Properties.php
1282
-
1283
-
-
1284
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:getTrueAlpha\\(\\) has parameter \\$alpha with no type specified\\.$#"
1285
-
count:1
1286
-
path:src/PhpSpreadsheet/Chart/Properties.php
1287
-
1288
-
-
1289
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:setColorProperties\\(\\) has no return type specified\\.$#"
1290
-
count:1
1291
-
path:src/PhpSpreadsheet/Chart/Properties.php
1292
-
1293
-
-
1294
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:setColorProperties\\(\\) has parameter \\$alpha with no type specified\\.$#"
1295
-
count:1
1296
-
path:src/PhpSpreadsheet/Chart/Properties.php
1297
-
1298
-
-
1299
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:setColorProperties\\(\\) has parameter \\$color with no type specified\\.$#"
1300
-
count:1
1301
-
path:src/PhpSpreadsheet/Chart/Properties.php
1302
-
1303
-
-
1304
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Properties\\:\\:setColorProperties\\(\\) has parameter \\$colorType with no type specified\\.$#"
1305
-
count:1
1306
-
path:src/PhpSpreadsheet/Chart/Properties.php
1307
-
1308
1268
-
1309
1269
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Chart\\\\Renderer\\\\JpGraph\\:\\:formatDataSetLabels\\(\\) has no return type specified\\.$#"
1310
1270
count:1
@@ -3155,26 +3115,6 @@ parameters:
3155
3115
count:1
3156
3116
path:src/PhpSpreadsheet/Shared/StringHelper.php
3157
3117
3158
-
-
3159
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:mbIsUpper\\(\\) has no return type specified\\.$#"
3160
-
count:1
3161
-
path:src/PhpSpreadsheet/Shared/StringHelper.php
3162
-
3163
-
-
3164
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:mbIsUpper\\(\\) has parameter \\$character with no type specified\\.$#"
3165
-
count:1
3166
-
path:src/PhpSpreadsheet/Shared/StringHelper.php
3167
-
3168
-
-
3169
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:mbStrSplit\\(\\) has no return type specified\\.$#"
3170
-
count:1
3171
-
path:src/PhpSpreadsheet/Shared/StringHelper.php
3172
-
3173
-
-
3174
-
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:mbStrSplit\\(\\) has parameter \\$string with no type specified\\.$#"
3175
-
count:1
3176
-
path:src/PhpSpreadsheet/Shared/StringHelper.php
3177
-
3178
3118
-
3179
3119
message:"#^Method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\StringHelper\\:\\:sanitizeUTF8\\(\\) should return string but returns string\\|false\\.$#"
3180
3120
count:1
@@ -3200,11 +3140,6 @@ parameters:
3200
3140
count:1
3201
3141
path:src/PhpSpreadsheet/Shared/StringHelper.php
3202
3142
3203
-
-
3204
-
message:"#^Variable \\$textValue on left side of \\?\\? always exists and is not nullable\\.$#"
3205
-
count:3
3206
-
path:src/PhpSpreadsheet/Shared/StringHelper.php
3207
-
3208
3143
-
3209
3144
message:"#^Static method PhpOffice\\\\PhpSpreadsheet\\\\Shared\\\\TimeZone\\:\\:validateTimeZone\\(\\) is unused\\.$#"
message:"#^Property PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Column\\:\\:\\$parent \\(PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\) does not accept PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\|null\\.$#"
3660
-
count:1
3661
-
path:src/PhpSpreadsheet/Worksheet/Column.php
3662
-
3663
3593
-
3664
3594
message:"#^Property PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Drawing\\\\Shadow\\:\\:\\$color \\(PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Color\\) does not accept PhpOffice\\\\PhpSpreadsheet\\\\Style\\\\Color\\|null\\.$#"
3665
3595
count:1
@@ -3685,11 +3615,6 @@ parameters:
3685
3615
count:1
3686
3616
path:src/PhpSpreadsheet/Worksheet/PageSetup.php
3687
3617
3688
-
-
3689
-
message:"#^Property PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Row\\:\\:\\$worksheet \\(PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\) does not accept PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\Worksheet\\|null\\.$#"
3690
-
count:1
3691
-
path:src/PhpSpreadsheet/Worksheet/Row.php
3692
-
3693
3618
-
3694
3619
message:"#^Property PhpOffice\\\\PhpSpreadsheet\\\\Worksheet\\\\SheetView\\:\\:\\$sheetViewTypes has no type specified\\.$#"
3695
3620
count:1
@@ -4477,12 +4402,12 @@ parameters:
4477
4402
4478
4403
-
4479
4404
message:"#^Parameter \\#2 \\$value of method XMLWriter\\:\\:writeAttribute\\(\\) expects string, array\\|int\\|string given\\.$#"
4480
-
count:8
4405
+
count:2
4481
4406
path:src/PhpSpreadsheet/Writer/Xlsx/Chart.php
4482
4407
4483
4408
-
4484
4409
message:"#^Parameter \\#2 \\$value of method XMLWriter\\:\\:writeAttribute\\(\\) expects string, array\\|int\\|string\\|null given\\.$#"
4485
-
count:2
4410
+
count:1
4486
4411
path:src/PhpSpreadsheet/Writer/Xlsx/Chart.php
4487
4412
4488
4413
-
@@ -4525,11 +4450,6 @@ parameters:
4525
4450
count:2
4526
4451
path:src/PhpSpreadsheet/Writer/Xlsx/Chart.php
4527
4452
4528
-
-
4529
-
message:"#^Part \\$xAxis\\-\\>getShadowProperty\\('effect'\\) \\(array\\|int\\|string\\|null\\) of encapsed string cannot be cast to string\\.$#"
4530
-
count:1
4531
-
path:src/PhpSpreadsheet/Writer/Xlsx/Chart.php
4532
-
4533
4453
-
4534
4454
message:"#^Part \\$xAxis\\-\\>getShadowProperty\\(\\['color', 'type'\\]\\) \\(array\\|int\\|string\\|null\\) of encapsed string cannot be cast to string\\.$#"
0 commit comments