diff --git a/src/Extend/RegisterUserPreferenceDefault.php b/src/Extend/RegisterUserPreferenceDefault.php index e4e1a0e..2d6f6bc 100644 --- a/src/Extend/RegisterUserPreferenceDefault.php +++ b/src/Extend/RegisterUserPreferenceDefault.php @@ -25,12 +25,12 @@ class RegisterUserPreferenceDefault implements ExtenderInterface * `type` must be specified as any valid `` type (except `select`), as this will be used for construct the settings options. * * @param string $key - * @param bool $value + * @param mixed $value * @param string $type * * @return self */ - public function default(string $key, mixed $value, string $type) + public function default(string $key, $value, string $type) { $this->data[] = compact('key', 'value', 'type'); diff --git a/src/Listeners/ApplyDefaultPreferences.php b/src/Listeners/ApplyDefaultPreferences.php index 12fae55..41f927e 100644 --- a/src/Listeners/ApplyDefaultPreferences.php +++ b/src/Listeners/ApplyDefaultPreferences.php @@ -44,7 +44,7 @@ public function handle(Registered $event) $event->user->save(); } - private function getDefault(string $key): mixed + private function getDefault(string $key) { return $this->settings->get('fof-default-user-preferences.'.$key); }