meeting the requirements of a static analyzer

This commit is contained in:
Anatoliy Poloz
2024-01-15 17:11:55 +03:00
81 changed files with 1320 additions and 501 deletions

View File

@@ -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();
}
}