Skip to content

Commit

Permalink
fix return type with empty settings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhahnweilheim authored Mar 4, 2024
1 parent 35cc9e1 commit 44599ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Config extends \yii\base\Model
public $showTopicMenu;
public $showUploadAsButtons;

public static function getSetting(string $setting_name): string
public static function getSetting(string $setting_name): ?string
{
// Note: return can be empty
return Yii::$app->getModule('flex-theme')->settings->get($setting_name);
Expand Down

0 comments on commit 44599ac

Please sign in to comment.