Skip to content

Commit 901d04a

Browse files
cs fix
1 parent 4f5545b commit 901d04a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,15 +742,15 @@ public function testReverseTransformDoesNotCauseIntegerPrecisionLoss()
742742
public function testRoundMethodKeepsIntegersAsIntegers()
743743
{
744744
$transformer = new NumberToLocalizedStringTransformer(2); // scale=2 triggers rounding
745-
745+
746746
// Use reflection to test the private round() method directly
747747
$reflection = new \ReflectionClass($transformer);
748748
$roundMethod = $reflection->getMethod('round');
749749
$roundMethod->setAccessible(true);
750-
750+
751751
$int = \PHP_INT_MAX - 1;
752752
$result = $roundMethod->invoke($transformer, $int);
753-
753+
754754
// With the fix, integers should stay as integers, not be converted to floats
755755
$this->assertSame($int, $result);
756756
$this->assertIsInt($result);

0 commit comments

Comments
 (0)