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 Feb 2, 2024
1 parent e2f6ecc commit 0891e3c
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 0891e3c

Please sign in to comment.