It seems like addOption() 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
addOption(
Loading history...
34
14
'em',
35
14
null,
36
14
InputOption::VALUE_OPTIONAL,
37
14
'The entity manager to use for this command'
38
);
39
14
}
40
41
1
protected function execute(InputInterface $input, OutputInterface $output): ?int
It seems like setHelperSet() 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
49
$this->/** @scrutinizer ignore-call */
50
setHelperSet(new HelperSet(['em' => new EntityManagerHelper($entityManager)]));