It seems like callback() 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
33
$this->/** @scrutinizer ignore-call */
34
callback();
Loading history...
34
}
35
}
36
37
/**
38
* @param array|iterable $list
39
* @param callable|null $callback
40
* @return \Generator
41
*/
42
public function yieldKeyVal($list, $callback = null)