The expression return $this->model returns the type Illuminate\Database\Eloquent\Model which includes types incompatible with the type-hinted return App\Shop\AttributeValues\AttributeValue.
The expression return $this->model->delete() could return the type null which is incompatible with the type-hinted return boolean. Consider adding an additional type-check to rule them out.
Loading history...
54
}
55
56
/**
57
* @return Collection
58
*/
59
public function findProductAttributes() : Collection