File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/PhpSpreadsheet/Worksheet Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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 -
Original file line number Diff line number Diff 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 ] : '' ;
You can’t perform that action at this time.
0 commit comments