Skip to content

Commit 4a4078f

Browse files
author
MarkBaker
committed
Merge branch 'master' into Column-Autofit-Indentation
2 parents bb96542 + a352856 commit 4a4078f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4197,7 +4197,7 @@ parameters:
41974197

41984198
-
41994199
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
4200-
count: 1
4200+
count: 2
42014201
path: src/PhpSpreadsheet/Worksheet/Worksheet.php
42024202

42034203
-

src/PhpSpreadsheet/Worksheet/Worksheet.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3014,6 +3014,10 @@ public function getHashCode()
30143014
*/
30153015
public static function extractSheetTitle(string $range, $returnRange = false)
30163016
{
3017+
if ($range === null) {
3018+
return $returnRange ? [null, null] : null;
3019+
}
3020+
30173021
// Sheet title included?
30183022
if (($sep = strrpos($range, '!')) === false) {
30193023
return $returnRange ? ['', $range] : '';

0 commit comments

Comments
 (0)