@@ -317,7 +317,7 @@ protected static function filterTestInSimpleDataSet(mixed $cellValue, array $dat
317317 {
318318 $ dataSetValues = $ dataSet ['filterValues ' ];
319319 $ blanks = $ dataSet ['blanks ' ];
320- if (($ cellValue == '' ) || ($ cellValue === null )) {
320+ if (($ cellValue === '' ) || ($ cellValue === null )) {
321321 return $ blanks ;
322322 }
323323
@@ -333,7 +333,7 @@ protected static function filterTestInDateGroupSet(mixed $cellValue, array $data
333333 {
334334 $ dateSet = $ dataSet ['filterValues ' ];
335335 $ blanks = $ dataSet ['blanks ' ];
336- if (($ cellValue == '' ) || ($ cellValue === null )) {
336+ if (($ cellValue === '' ) || ($ cellValue === null )) {
337337 return $ blanks ;
338338 }
339339 $ timeZone = new DateTimeZone ('UTC ' );
@@ -379,7 +379,7 @@ protected static function filterTestInCustomDataSet(mixed $cellValue, array $rul
379379
380380 if (!$ customRuleForBlanks ) {
381381 // Blank cells are always ignored, so return a FALSE
382- if (($ cellValue == '' ) || ($ cellValue === null )) {
382+ if (($ cellValue === '' ) || ($ cellValue === null )) {
383383 return false ;
384384 }
385385 }
@@ -424,7 +424,7 @@ protected static function filterTestInCustomDataSet(mixed $cellValue, array $rul
424424 }
425425 } elseif ($ ruleValue == '' ) {
426426 $ retVal = match ($ ruleOperator ) {
427- Rule::AUTOFILTER_COLUMN_RULE_EQUAL => ($ cellValue == '' ) || ($ cellValue === null ),
427+ Rule::AUTOFILTER_COLUMN_RULE_EQUAL => ($ cellValue === '' ) || ($ cellValue === null ),
428428 Rule::AUTOFILTER_COLUMN_RULE_NOTEQUAL => ($ cellValue != '' ) && ($ cellValue !== null ),
429429 default => true ,
430430 };
@@ -486,7 +486,7 @@ protected static function filterTestInCustomDataSet(mixed $cellValue, array $rul
486486 protected static function filterTestInPeriodDateSet (mixed $ cellValue , array $ monthSet ): bool
487487 {
488488 // Blank cells are always ignored, so return a FALSE
489- if (($ cellValue == '' ) || ($ cellValue === null )) {
489+ if (($ cellValue === '' ) || ($ cellValue === null )) {
490490 return false ;
491491 }
492492
0 commit comments