File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 */
1111class 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}
You can’t perform that action at this time.
0 commit comments