It seems like (new \Micro\Web\UserInjector())->build()->getID() targeting Micro\Web\IUser::getID() can also be of type boolean; however, Micro\Mvc\Models\Model::findByPk() does only seem to accept integer|string, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
47
if (!$user) {
48
return $this->redirect('/logout');
49
}
50
51
$body = (new RequestInjector)->build()->getParsedBody();
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.