diff --git a/.php_cs.dist b/.php_cs.dist index 04bf320..4fae2e0 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -12,6 +12,7 @@ $config = PhpCsFixer\Config::create() 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => ['space' => 'single'], 'heredoc_to_nowdoc' => true, + 'increment_style' => ['style' => 'post'], 'is_null' => ['use_yoda_style' => false], 'method_argument_space' => ['ensure_fully_multiline' => true], 'modernize_types_casting' => true, @@ -34,7 +35,6 @@ $config = PhpCsFixer\Config::create() 'phpdoc_summary' => false, 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], 'phpdoc_separation' => false, - 'pre_increment' => false, 'protected_to_private' => true, 'psr4' => true, 'return_type_declaration' => ['space_before' => 'one'], diff --git a/src/Spout/Reader/XLSX/Helper/CellValueFormatter.php b/src/Spout/Reader/XLSX/Helper/CellValueFormatter.php index aaebfa6..458765e 100644 --- a/src/Spout/Reader/XLSX/Helper/CellValueFormatter.php +++ b/src/Spout/Reader/XLSX/Helper/CellValueFormatter.php @@ -200,7 +200,7 @@ class CellValueFormatter { // Fix for the erroneous leap year in Excel if (ceil($nodeValue) > self::ERRONEOUS_EXCEL_LEAP_YEAR_DAY) { - --$nodeValue; + $nodeValue--; } if ($nodeValue >= 1) {