8000 Update src/Symfony/Component/Yaml/Tests/InlineTest.php · symfony/symfony@ea26ae2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea26ae2

Browse files
Update src/Symfony/Component/Yaml/Tests/InlineTest.php
Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
1 parent ab65798 commit ea26ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Tests/InlineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public function getTestsForDump()
566566
public function testParseTimestampAsUnixTimestampByDefault(string $yaml, int $year, int $month, int $day, int $hour, int $minute, int $second, int $microsecond)
567567
{
568568
$expectedDate = (new \DateTimeImmutable($yaml))->format('U');
569-
$this->assertSame(($microsecond) ? (float) "$expectedDate.$microsecond" : (int) $expectedDate, Inline::parse($yaml));
569+
$this->assertSame($microsecond ? (float) "$expectedDate.$microsecond" : (int) $expectedDate, Inline::parse($yaml));
570570
}
571571

572572
/**

0 commit comments

Comments
 (0)
0