Skip to content

Commit 702c1ce

Browse files
committed
Disable 'numeric_literal_separator' fixer
1 parent 7897f32 commit 702c1ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
->setParallelConfig(ParallelConfigFactory::detect())
2020
->setCacheFile(__DIR__ . '/var/' . basename(__FILE__) . '.cache');
2121

22-
(new PhpCsFixerCodingStandard())->applyTo($config);
22+
(new PhpCsFixerCodingStandard())->applyTo($config, [
23+
'numeric_literal_separator' => false,
24+
]);
2325

2426
return $config;

tests/ParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static function cases(): \Generator
9292
yield '0.5' => floatT(0.5);
9393
yield '-4.67' => floatT(-4.67);
9494
yield 'float' => floatT;
95-
yield 'float<10.0002, 231.00002>' => floatRangeT(10.000_2, 231.000_02);
95+
yield 'float<10.0002, 231.00002>' => floatRangeT(10.0002, 231.00002);
9696
yield 'float<min, 123>' => floatRangeT(max: 123);
9797
yield 'float<-99, max>' => floatRangeT(min: -99);
9898
yield '"0"' => stringT('0');

0 commit comments

Comments
 (0)