← All changes
|
libraries/vendor/PhpSpreadsheet/Style/NumberFormat/NumberFormatter.php
+1
-1
3.3.4
→
3.4
View file →
| @@ -174,9 +174,9 @@ | ||
| 174 | 174 | return sprintf("%{$size}.{$decimals}E", $valueFloat); |
| 175 | 175 | } |
| 176 | 176 | if (preg_match('/0([^\d\.]+)0/', $format) || substr_count($format, '.') > 1) { |
| 177 | 177 | if ($valueFloat == floor($valueFloat) && substr_count($format, '.') === 1) { |
| 178 | - $value *= 10 ** strlen(explode('.', $format)[1]); //* @phpstan-ignore-line | |
| 178 | + $value *= 10 ** strlen(explode('.', $format)[1]); //* @phpstan-ignore assignOp.invalid ($value may be mixed) | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | $result = self::complexNumberFormatMask($value, $format); |
| 182 | 182 | if (str_contains($result, 'E')) { |