It seems like belongsTo() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
27
$this->/** @scrutinizer ignore-call */
28
belongsTo('User');
Loading history...
28
}
29
30
/**
31
* @param $providerName
32
* @param $user
33
* @param $userProfile
34
* @return LoginTrait
35
*/
36
public function createForProvider($providerName, $user, $userProfile)
It seems like findOneByParams() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
It seems like getRelation() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The expression return $userManager->findOne($item->id_user) returns the type Nip\Records\AbstractModels\Record which is incompatible with the documented return type ByTIC\Hello\Models\Users\Traits\UserTrait|boolean.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.