8000 bug #25072 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::micr… · symfony/symfony@7be944a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7be944a

Browse files
bug #25072 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false) (joky)
This PR was merged into the 2.8 branch. Discussion ---------- [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false) | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25050 | License | MIT | Doc PR | - Commits ------- 5ddb121 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false)
2 parents c23adae + 5ddb121 commit 7be944a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/ClockMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function microtime($asFloat = false)
6666
return self::$now;
6767
}
6868

69-
return sprintf("%0.6f %d\n", self::$now - (int) self::$now, (int) self::$now);
69+
return sprintf('%0.6f %d', self::$now - (int) self::$now, (int) self::$now);
7070
}
7171

7272
public static function register($class)

0 commit comments

Comments
 (0)
0