PHP 8.1 Support Issue - Passing null pararmeter deprecated
Please see error below:
Severity: 8192
Message: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
Filename: php_xlsxwriter/xlsxwriter.class.php
Line Number: 760
Adding ternary to line 760 is a suggested fix:
return strtr(htmlspecialchars($val ?: '', ENT_QUOTES | ENT_XML1), $badchars, $goodchars);//strtr appears to be faster than str_replace