Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated...
 

quick fix is to use null coalescing operator

eg  strtolower($variable ?? '')