Skip to content

Commit 5782a1e

Browse files
committed
Get rid of "remaining" prefix
If people elected to ignore a deprecation group, it makes no sense to have this prefix
1 parent 8c6dd3b commit 5782a1e

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,7 @@ private function displayDeprecations($groups, $configuration, $isFailing)
284284
foreach ($groups as $group) {
285285
if ($this->deprecationGroups[$group]->count()) {
286286
echo "\n", self::colorize(
287-
sprintf(
288-
'%s deprecation notices (%d)',
289-
\in_array($group, ['direct', 'indirect', 'self'], true) ? "Remaining $group" : ucfirst($group),
290-
$this->deprecationGroups[$group]->count()
291-
),
287+
sprintf('%s deprecation notices (%d)', ucfirst($group), $this->deprecationGroups[$group]->count()),
292288
'legacy' !== $group && 'indirect' !== $group
293289
), "\n";
294290

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require __DIR__.'/fake_vendor/acme/outdated-lib/outdated_file.php';
3333

3434
?>
3535
--EXPECTF--
36-
Remaining indirect deprecation notices (1)
36+
Indirect deprecation notices (1)
3737

3838
1x: deprecatedApi is deprecated! You should stop relying on it!
3939
1x in SomeService::deprecatedApi from acme\lib

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ require __DIR__.'/fake_vendor/acme/outdated-lib/outdated_file.php';
2424
--EXPECTF--
2525
Unsilenced deprecation notices (3)
2626

27-
Remaining direct deprecation notices (1)
27+
Direct deprecation notices (1)
2828

29-
Remaining indirect deprecation notices (1)
29+
Indirect deprecation notices (1)
3030

3131
1x: deprecatedApi is deprecated! You should stop relying on it!
3232
1x in SomeService::deprecatedApi from acme\lib

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require __DIR__.'/fake_vendor/acme/outdated-lib/outdated_file.php';
3333

3434
?>
3535
--EXPECTF--
36-
Remaining indirect deprecation notices (1)
36+
Indirect deprecation notices (1)
3737

3838
1x: deprecatedApi is deprecated! You should stop relying on it!
3939
1x in SomeService::deprecatedApi from acme\lib

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Unsilenced deprecation notices (3)
2929
1x: unsilenced bar deprecation
3030
1x in FooTestCase::testNonLegacyBar
3131

32-
Remaining direct deprecation notices (1)
32+
Direct deprecation notices (1)
3333

3434
1x: silenced bar deprecation
3535
1x in FooTestCase::testNonLegacyBar

0 commit comments

Comments
 (0)