forked from eatvio/eatvio-infra
meeting the requirements of a static analyzer
This commit is contained in:
@@ -20,7 +20,7 @@ class DescriptionForm extends Component
|
||||
$this->description = $this->user->detailz->additional_info ?? '';
|
||||
}
|
||||
|
||||
public function updatedDescription(mixed $value): void
|
||||
public function updatedDescription(string $value): void
|
||||
{
|
||||
$userDetailz = $this->user->detailz;
|
||||
|
||||
@@ -47,7 +47,7 @@ class DescriptionForm extends Component
|
||||
]
|
||||
);
|
||||
|
||||
if (! $curUserDetailez->id) {
|
||||
if (! isset($curUserDetailez->id)) {
|
||||
$curUserDetailez->save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user