Making PHPStan happy
This commit is contained in:
parent
7e5a25237e
commit
7eea49897f
|
@ -0,0 +1 @@
|
|||
tags
|
|
@ -40,7 +40,7 @@ function game_version_code($str = null)
|
|||
$min = $items[1];
|
||||
$pat = isset($items[2]) ? $items[2] : 0;
|
||||
|
||||
$num = $pat + $min*100 + $maj*1000000;
|
||||
$num = $pat + intval($min)*100 + intval($maj)*1000000;
|
||||
return $num;
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,8 @@ function get_inc_game_version()
|
|||
{
|
||||
$string = game_version();
|
||||
|
||||
$most_significant_number = -1;
|
||||
|
||||
for($i = strlen($string) - 1; $i >= 0; $i--)
|
||||
{
|
||||
if(is_numeric($string[$i]))
|
||||
|
|
Loading…
Reference in New Issue