Merge branch '4.0'
* 4.0: fix merge
This commit is contained in:
commit
b292d59f03
@ -214,13 +214,13 @@ class DeprecationErrorHandler
|
|||||||
return $b['count'] - $a['count'];
|
return $b['count'] - $a['count'];
|
||||||
};
|
};
|
||||||
|
|
||||||
$displayDeprecations = function ($deprecations) use ($colorize, $cmp) {
|
$groups = array('unsilenced', 'remaining');
|
||||||
$groups = array('unsilenced', 'remaining');
|
if (DeprecationErrorHandler::MODE_WEAK_VENDORS === $mode) {
|
||||||
if (DeprecationErrorHandler::MODE_WEAK_VENDORS === $mode) {
|
|
||||||
$groups[] = 'remaining vendor';
|
$groups[] = 'remaining vendor';
|
||||||
}
|
}
|
||||||
array_push($groups, 'legacy', 'other');
|
array_push($groups, 'legacy', 'other');
|
||||||
|
|
||||||
|
$displayDeprecations = function ($deprecations) use ($colorize, $cmp, $groups) {
|
||||||
foreach ($groups as $group) {
|
foreach ($groups as $group) {
|
||||||
if ($deprecations[$group.'Count']) {
|
if ($deprecations[$group.'Count']) {
|
||||||
echo "\n", $colorize(
|
echo "\n", $colorize(
|
||||||
|
Reference in New Issue
Block a user