1
0
Fork 0

Merge pull request #9932 from jrfnl/php-8.1/9931-fix-deprecation-notice

PHP 8.1 | Fix "Implicit conversion from non-compatible float" deprecation notice
pull/9935/head
Jordi Boggiano 2021-06-03 09:11:02 +02:00 committed by GitHub
commit 61c7762680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class Version
return sprintf( return sprintf(
'%d.%d.%d', '%d.%d.%d',
$versionId / ($base * $base), $versionId / ($base * $base),
($versionId / $base) % $base, (int) ($versionId / $base) % $base,
$versionId % $base $versionId % $base
); );
} }