1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-12 00:54:35 +02:00

Cast value to normalize as int for PHP 7.1

This commit is contained in:
Thomas N
2017-05-31 16:20:51 +01:00
committed by GitHub
parent a36e201ab2
commit 48a34d6900

View File

@@ -766,9 +766,9 @@ class CSSmin
{ {
if (is_string($size)) { if (is_string($size)) {
switch (substr($size, -1)) { switch (substr($size, -1)) {
case 'M': case 'm': return $size * 1048576; case 'M': case 'm': return (int) $size * 1048576;
case 'K': case 'k': return $size * 1024; case 'K': case 'k': return (int) $size * 1024;
case 'G': case 'g': return $size * 1073741824; case 'G': case 'g': return (int) $size * 1073741824;
} }
} }