$this->id of type null|string is incompatible with the type integer expected by parameter $user_id of Example\Models\Address::findByUser().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
30
$this->address = (new Address())->findByUser(/** @scrutinizer ignore-type */ $this->id);
$this->id of type null|string is incompatible with the type integer expected by parameter $user_id of Example\Models\Socials::getUserSocials().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
50
$socials = (new Socials())->getUserSocials(/** @scrutinizer ignore-type */ $this->id);
The variable $user_socials seems to be defined by a foreach iteration on line 62. Are you sure the iterator is never empty, otherwise this variable is not defined?