Skip to content

Commit a61a0ab

Browse files
committed
fix PHP 7.4 errors
1 parent 8e6e004 commit a61a0ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/controllers/ReleaseController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,18 +1051,17 @@ protected function getNextVersions(array $versions, $type)
10511051
$versions[$k] = '2.0.0';
10521052
continue;
10531053
}
1054-
/** @phpstan-var numeric-string[] */
10551054
$parts = explode('.', $v);
10561055
switch ($type) {
10571056
case self::MINOR:
1058-
$parts[1]++;
1057+
$parts[1] = (int) $parts[1] + 1;
10591058
$parts[2] = 0;
10601059
if (isset($parts[3])) {
10611060
unset($parts[3]);
10621061
}
10631062
break;
10641063
case self::PATCH:
1065-
$parts[2]++;
1064+
$parts[2] = (int) $parts[2] + 1;
10661065
if (isset($parts[3])) {
10671066
unset($parts[3]);
10681067
}

0 commit comments

Comments
 (0)