Skip to content

Commit 844d81c

Browse files
Merge branch '2.7' into 2.8
* 2.7: minor symfony#25752 Don't right trim the deprecation message (alexpott)
2 parents e9bcd21 + 70c8c2d commit 844d81c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static function register($mode = 0)
168168
uasort($deprecations[$group], $cmp);
169169

170170
foreach ($deprecations[$group] as $msg => $notices) {
171-
echo "\n", rtrim($msg, '.'), ': ', $notices['count'], "x\n";
171+
echo "\n ", $notices['count'], 'x: ', $msg, "\n";
172172

173173
arsort($notices);
174174

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/default.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@ $foo->testNonLegacyBar();
6363
--EXPECTF--
6464
Unsilenced deprecation notices (3)
6565

66-
unsilenced foo deprecation: 2x
66+
2x: unsilenced foo deprecation
6767
2x in FooTestCase::testLegacyFoo
6868

69-
unsilenced bar deprecation: 1x
69+
1x: unsilenced bar deprecation
7070
1x in FooTestCase::testNonLegacyBar
7171

7272
Remaining deprecation notices (1)
7373

74-
silenced bar deprecation: 1x
74+
1x: silenced bar deprecation
7575
1x in FooTestCase::testNonLegacyBar
7676

7777
Legacy deprecation notices (1)
7878

7979
Other deprecation notices (1)
8080

81-
root deprecation: 1x
81+
1x: root deprecation
8282

0 commit comments

Comments
 (0)