Skip to content

Commit

Permalink
fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhahnweilheim committed Feb 14, 2024
1 parent 13bb69e commit 73d7978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/ColorSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function getColorFallBack(string $color): string
return $value;
}

private function getDefaultValue(string $color): string
private function getDefaultValue(string $color): ?string
{
// compatiblity with PHP 7.4 will be removed in next version
if (version_compare(phpversion(), '8.0.0', '<')) {
Expand Down
2 changes: 1 addition & 1 deletion models/DarkColorSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function getColorFallBack(string $color): string
return $value;
}

private function getDefaultValue(string $color): string
private function getDefaultValue(string $color): ?string
{
// compatiblity with PHP 7.4 will be removed in next version
if (version_compare(phpversion(), '8.0.0', '<')) {
Expand Down

0 comments on commit 73d7978

Please sign in to comment.