[TOOLS] Fix errors reported by updated PHPStan

This commit is contained in:
2021-12-26 19:08:56 +00:00
committed by Diogo Peralta Cordeiro
parent 52e2231661
commit 7eff22d548
4 changed files with 20 additions and 17 deletions

View File

@@ -96,7 +96,7 @@ class Posting extends Component
Event::handle('PostingGetContextActor', [$request, $actor, &$context_actor]);
$form_params = [];
if (!empty($in_targets)) {
if (!empty($in_targets)) { // @phpstan-ignore-line
$form_params[] = ['in', ChoiceType::class, ['label' => _m('In:'), 'multiple' => false, 'expanded' => false, 'choices' => $in_targets]];
}