The method collect() does not exist on Yiisoft\Yii\Debug\Collector\CollectorInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Yiisoft\Yii\Debug\Collector\QueueCollector. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
23
$collector->/** @scrutinizer ignore-call */
24
collect(new ApplicationStartup(null));
Loading history...
24
25
time_sleep_until(microtime(true) + 0.123);
26
27
$collector->collect(new ApplicationShutdown(0));
28
}
29
30
protected function getCollector(): CollectorInterface
31
{
32
return new ConsoleAppInfoCollector();
33
}
34
35
protected function checkCollectedData(CollectorInterface $collector): void