Skip to content

Commit 614786a

Browse files
imorlandStyleCIBot
andauthored
fix: Compatibility PHP <8.0 (#5)
* fix: Compatibility <8.0 * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <[email protected]>
1 parent 310d4d9 commit 614786a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Extend/RegisterUserPreferenceDefault.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class RegisterUserPreferenceDefault implements ExtenderInterface
2525
* `type` must be specified as any valid `<input>` type (except `select`), as this will be used for construct the settings options.
2626
*
2727
* @param string $key
28-
* @param bool $value
28+
* @param mixed $value
2929
* @param string $type
3030
*
3131
* @return self
3232
*/
33-
public function default(string $key, mixed $value, string $type)
33+
public function default(string $key, $value, string $type)
3434
{
3535
$this->data[] = compact('key', 'value', 'type');
3636

src/Listeners/ApplyDefaultPreferences.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function handle(Registered $event)
4444
$event->user->save();
4545
}
4646

47-
private function getDefault(string $key): mixed
47+
private function getDefault(string $key)
4848
{
4949
return $this->settings->get('fof-default-user-preferences.'.$key);
5050
}

0 commit comments

Comments
 (0)