Skip to content

Commit 97cb91e

Browse files
committed
Reset lower version numbers when incrementing versions
1 parent fad3524 commit 97cb91e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/bump_major_version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
require dirname(__FILE__) . '/../src/Curl/Curl.php';
44

55
$current_version = Curl\Curl::VERSION;
6-
list($major, $minor, $patch) = explode('.', $current_version);
7-
$new_version = implode('.', array((string)((int)$major += 1), $minor, $patch));
6+
list($major, $_, $_) = explode('.', $current_version);
7+
$new_version = implode('.', array((string)((int)$major += 1), '0', '0'));
88

99
foreach(
1010
array(

scripts/bump_minor_version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
require dirname(__FILE__) . '/../src/Curl/Curl.php';
44

55
$current_version = Curl\Curl::VERSION;
6-
list($major, $minor, $patch) = explode('.', $current_version);
7-
$new_version = implode('.', array($major, (string)((int)$minor += 1), $patch));
6+
list($major, $minor, $_) = explode('.', $current_version);
7+
$new_version = implode('.', array($major, (string)((int)$minor += 1), '0'));
88

99
foreach(
1010
array(

0 commit comments

Comments
 (0)