From c8c27e5434b5938cda443aa889ea7949e6951496 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 11 Feb 2018 18:30:10 +0100 Subject: [PATCH] fix merge --- src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php index 44cbf9e618..90cea694c3 100644 --- a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php +++ b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php @@ -215,13 +215,13 @@ class DeprecationErrorHandler return $b['count'] - $a['count']; }; - $displayDeprecations = function ($deprecations) use ($colorize, $cmp) { - $groups = array('unsilenced', 'remaining'); - if (DeprecationErrorHandler::MODE_WEAK_VENDORS === $mode) { + $groups = array('unsilenced', 'remaining'); + if (DeprecationErrorHandler::MODE_WEAK_VENDORS === $mode) { $groups[] = 'remaining vendor'; - } - array_push($groups, 'legacy', 'other'); + } + array_push($groups, 'legacy', 'other'); + $displayDeprecations = function ($deprecations) use ($colorize, $cmp, $groups) { foreach ($groups as $group) { if ($deprecations[$group.'Count']) { echo "\n", $colorize(