It seems like addToObject() 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
71
$this->/** @scrutinizer ignore-call */
72
addToObject(Members::LINKS, $name, $link);
Loading history...
72
73
6
return $this;
74
}
75
76
/**
77
* Fill the "links" member with fake values.
78
*
79
* @param array $links
80
*
81
* @return static
82
*/
83
39
public function fakeLinks($links = [Members::LINK_SELF => ['url']])
It seems like fakeMembers() 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