PHP 8.1 Deprecated function: trim(): Passing null to parameter #1 ($string)