Skip to content

Commit b22f156

Browse files
committed
Tweak Robo::release options
1 parent f79fa42 commit b22f156

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

RoboFile.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class RoboFile extends Tasks
1212
{
13-
public function release($branch = 'master', $what = 'patch'): void
13+
public function release(string $branch = 'master', string $what = 'patch'): void
1414
{
1515
$this->say($what);
1616
$result = $this->taskSemVer()
@@ -28,17 +28,17 @@ public function release($branch = 'master', $what = 'patch'): void
2828
* @param string $branch
2929
* @param string $tag
3030
*/
31-
public function createTag($branch = '', $tag = '')
31+
public function createTag(string $branch = '', string $tag = ''): void
3232
{
3333
$this->say("Creating tag $tag on origin::$branch");
3434

3535
$this->taskGitStack()
36-
->stopOnFail()
36+
->stopOnFail()
3737
->add('.semver')
38-
->commit('Update version')
39-
->push('origin', $branch)
40-
->tag($tag)
41-
->push('origin', $tag)
42-
->run();
38+
->commit('Update version')
39+
->push('origin', $branch)
40+
->tag($tag)
41+
->push('origin', $tag)
42+
->run();
4343
}
4444
}

0 commit comments

Comments
 (0)