New feature: Branch name for software products

This commit is contained in:
Steffen Lange 2020-04-01 17:25:40 +02:00
parent dd3be30e56
commit 3d037ec2b3
5 changed files with 13 additions and 6 deletions

View file

@ -34,7 +34,7 @@ abstract class PatchBase {
}
protected function parse(string $re) : bool {
if ($str = $this->regex_str($re)) {
$this->patch->SetVersion($str);
$this->patch->setVersion($str);
return true;
}
return false;
@ -42,7 +42,7 @@ abstract class PatchBase {
protected function parse_json(string $key) : bool {
$flat = iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveArrayIterator($this->data)));
if (!empty($flat[$key])) {
$this->patch->SetVersion($flat[$key]);
$this->patch->setVersion($flat[$key]);
return true;
}
return false;