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:
4197
4197
4198
4198
-
4199
4199
message : " #^Strict comparison using \\ =\\ =\\ = between string and null will always evaluate to false\\ .$#"
4200
- count : 1
4200
+ count : 2
4201
4201
path : src/PhpSpreadsheet/Worksheet/Worksheet.php
4202
4202
4203
4203
-
Original file line number Diff line number Diff line change @@ -3014,6 +3014,10 @@ public function getHashCode()
3014
3014
*/
3015
3015
public static function extractSheetTitle (string $ range , $ returnRange = false )
3016
3016
{
3017
+ if ($ range === null ) {
3018
+ return $ returnRange ? [null , null ] : null ;
3019
+ }
3020
+
3017
3021
// Sheet title included?
3018
3022
if (($ sep = strrpos ($ range , '! ' )) === false ) {
3019
3023
return $ returnRange ? ['' , $ range ] : '' ;
You can’t perform that action at this time.
0 commit comments