The method getNameOfUpgradeStarterBranch() 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
24
Creates a starter branch: "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfUpgradeStarterBranch() . '" of your module/app
It seems like getNameOfUpgradeStarterBranch() 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
24
Creates a starter branch: "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfUpgradeStarterBranch() . '" of your module/app
Loading history...
25
from the "' . $this->mu()->getNameOfBranchForBaseCode() . '" branch.
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
25
from the "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfBranchForBaseCode() . '" branch.
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
25
from the "' . $this->mu()->/** @scrutinizer ignore-call */ getNameOfBranchForBaseCode() . '" branch.
Loading history...
26
If it does not exist.
27
These branch names can be customised with setNameOfUpgradeStarterBranch and setNameOfBranchForBaseCode.
28
';
29
}
30
31
/**
32
* @param array $params not currently used for this task
33
*/
34
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