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` (joomla#37009)

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 Apr 2, 2022
1 parent a7783ca commit 761e52e
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 761e52e

Please sign in to comment.