Skip to content

Commit c55c28d

Browse files
authored
Coerce number values before doing math
1 parent cc883c5 commit c55c28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ protected function normalizeNumber($number)
12441244
if (isset(self::$unitTable['in'][$unit])) {
12451245
$conv = self::$unitTable['in'][$unit];
12461246

1247-
return array('number', $value / $conv, 'in');
1247+
return array('number', (float) $value / (float) $conv, 'in');
12481248
}
12491249

12501250
return $number;

0 commit comments

Comments
 (0)