Skip to content

Commit

Permalink
Fixes `Deprecated: strtolower(): Passing null to string in libraries/…
Browse files Browse the repository at this point in the history
…src/Log/Log.php on line 387`

Fixes `Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Log/Log.php on line 387`
  • Loading branch information
beat authored Feb 11, 2022
1 parent 8b03613 commit d014c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Log/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ protected function findLoggers($priority, $category)

// Sanitize inputs.
$priority = (int) $priority;
$category = strtolower($category);
$category = strtolower((string) $category);

// Let's go iterate over the loggers and get all the ones we need.
foreach ((array) $this->lookup as $signature => $rules)
Expand Down

0 comments on commit d014c9b

Please sign in to comment.