The method getIsModuleUpgrade() 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
36
if ($this->mu()->/** @scrutinizer ignore-call */ getIsModuleUpgrade()) {
It seems like getIsModuleUpgrade() 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
36
if ($this->mu()->/** @scrutinizer ignore-call */ getIsModuleUpgrade()) {
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
The expression return $this->mu()->getIsModuleUpgrade() also could return the type Sunnysideup\UpgradeToSil...rstripe4\Traits\Creator which is incompatible with the return type mandated by Sunnysideup\UpgradeToSil...ask::hasCommitAndPush() of boolean.