diff --git a/src/Composer/Platform/Version.php b/src/Composer/Platform/Version.php index 15b2fdb95..61b3b5669 100644 --- a/src/Composer/Platform/Version.php +++ b/src/Composer/Platform/Version.php @@ -97,7 +97,7 @@ class Version return sprintf( '%d.%d.%d', $versionId / ($base * $base), - ($versionId / $base) % $base, + (int) ($versionId / $base) % $base, $versionId % $base ); }