It seems like setBreakOnAllErrors() 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
It seems like findNameSpaceAndCodeDirs() 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
43
foreach ($this->mu()->/** @scrutinizer ignore-call */ findNameSpaceAndCodeDirs() as $codeDir) {
Loading history...
44
$actualDir = dirname($codeDir);
45
$this->param1 = $actualDir;
46
$this->runSilverstripeUpgradeTask(
47
'upgrade',
48
$this->param1,
49
$this->param2,
50
$this->rootDirForCommand,
51
$this->settings
52
);
53
$this->setCommitMessage('API: core upgrade to SS4 - STEP 1 (upgrade) on ' . $actualDir);