PHP 8.1 Deprecated function: preg_quote(): Passing null to parameter #1 ($str) of type string is deprecated