Skip to content

Commit c449a9d

Browse files
author
kaizen-ci
committed
[PHPStanRules] Make NoNestedFuncCallRule work for nested expressions (#3145)
1 parent 7f1b1ce commit c449a9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Console/Reporter/CheckerListReporter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ public function __construct(SymfonyStyle $symfonyStyle)
2121
}
2222

2323
/**
24-
* @param FixerInterface[]|Sniff[]|string[] $checkers
24+
* @param FixerInterface[]|Sniff[] $checkers
2525
*/
2626
public function report(array $checkers, string $type): void
2727
{
2828
if ($checkers === []) {
2929
return;
3030
}
3131

32-
$checkerNames = array_map(function ($fixer): string {
33-
return is_string($fixer) ? $fixer : get_class($fixer);
32+
$checkerNames = array_map(function ($checker): string {
33+
return get_class($checker);
3434
}, $checkers);
3535

3636
$sectionMessage = sprintf('%d checker%s from %s:', count($checkers), count($checkers) === 1 ? '' : 's', $type);

0 commit comments

Comments
 (0)