diff --git a/src/Helper/SemanticVersion.php b/src/Helper/SemanticVersion.php index b1d4efe..00006c8 100644 --- a/src/Helper/SemanticVersion.php +++ b/src/Helper/SemanticVersion.php @@ -62,8 +62,11 @@ public function bump(string $release): string if ($release === self::MAJOR) { $newVersion[0]++; + $newVersion[1] = 0; + $newVersion[2] = 0; } elseif ($release === self::MINOR) { $newVersion[1]++; + $newVersion[2] = 0; } elseif ($release === self::PATCH) { $newVersion[2]++; }