fixed version increment of release command

This commit is contained in:
Carsten Brandt
2017-02-08 10:08:37 +01:00
parent 0e6c6635e5
commit 89f66ae422
2 changed files with 7 additions and 1 deletions

View File

@ -1021,9 +1021,15 @@ class ReleaseController extends Controller
case self::MINOR: case self::MINOR:
$parts[1]++; $parts[1]++;
$parts[2] = 0; $parts[2] = 0;
if (isset($parts[3])) {
unset($parts[3]);
}
break; break;
case self::PATCH: case self::PATCH:
$parts[2]++; $parts[2]++;
if (isset($parts[3])) {
unset($parts[3]);
}
break; break;
default: default:
throw new Exception('Unknown version type.'); throw new Exception('Unknown version type.');

View File

@ -93,7 +93,7 @@ class BaseYii
*/ */
public static function getVersion() public static function getVersion()
{ {
return '2.0.12.2-dev'; return '2.0.12-dev';
} }
/** /**