mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
fixed version increment of release command
This commit is contained in:
@ -1021,9 +1021,15 @@ class ReleaseController extends Controller
|
||||
case self::MINOR:
|
||||
$parts[1]++;
|
||||
$parts[2] = 0;
|
||||
if (isset($parts[3])) {
|
||||
unset($parts[3]);
|
||||
}
|
||||
break;
|
||||
case self::PATCH:
|
||||
$parts[2]++;
|
||||
if (isset($parts[3])) {
|
||||
unset($parts[3]);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Exception('Unknown version type.');
|
||||
|
||||
@ -93,7 +93,7 @@ class BaseYii
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return '2.0.12.2-dev';
|
||||
return '2.0.12-dev';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user