Skip to content

Commit

Permalink
Merge pull request #1 from plandruxa/bugfixPHP7_2getIntCell
Browse files Browse the repository at this point in the history
bug in PHP 7.2
  • Loading branch information
ellumilel committed Oct 22, 2018
2 parents 39dbe94 + 58541ca commit f6685f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xl/Worksheets/SheetXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function getCurrencyCell($cellName, $cellIndex, $value)
*/
private function getIntCell($cellName, $cellIndex, $value)
{
return '<c r="'.$cellName.'" s="'.$cellIndex.'" t="n"><v>'.($value * 1).'</v></c>';
return '<c r="'.$cellName.'" s="'.$cellIndex.'" t="n"><v>'.intval($value).'</v></c>';
}

/**
Expand Down

0 comments on commit f6685f3

Please sign in to comment.