The method getNameOfBranchForBaseCode() does not exist on Sunnysideup\UpgradeToSilverstripe4\ModuleUpgrader. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
30
from the "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfBranchForBaseCode() . '" branch so that you
It seems like getNameOfBranchForBaseCode() 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
30
from the "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfBranchForBaseCode() . '" branch so that you
Loading history...
31
can keep making bugfixes to older versions.
32
In the recipes you can see how to set the name of the legacy branch.';
33
}
34
35
/**
36
* @param array $params not currently used for this task
37
*/
38
public function runActualTask($params = []): ?string
It seems like getGitRootDir() 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