Skip to content

Commit

Permalink
fix: Compatibility PHP <8.0 (#5)
Browse files Browse the repository at this point in the history
* fix: Compatibility <8.0

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
imorland and StyleCIBot authored Jun 21, 2022
1 parent 310d4d9 commit 614786a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Extend/RegisterUserPreferenceDefault.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class RegisterUserPreferenceDefault implements ExtenderInterface
* `type` must be specified as any valid `<input>` 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');

Expand Down
2 changes: 1 addition & 1 deletion src/Listeners/ApplyDefaultPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 614786a

Please sign in to comment.