It seems like getEntity() 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 $model of type Illuminate\Database\Eloquent\Model is incompatible with the declared type SoliDry\Extension\ApiController of property $model.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
39
unset($this->model->password);
40
}
41
42
/**
43
* @param $model
44
* @param $jsonApiAttributes
45
*/
46
private function updateJwtUser(&$model, $jsonApiAttributes)