Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
  • Loading branch information
kenjis committed Jan 31, 2024
1 parent 33a02b8 commit 93c23b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/API/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ protected function format($data = null)
*/
protected function setResponseFormat(?string $format = null)
{
$this->format = strtolower($format);
$this->format = ($format === null) ? null : strtolower($format);

return $this;
}
Expand Down

0 comments on commit 93c23b2

Please sign in to comment.