[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

@@ -113,11 +113,11 @@ abstract class Parser
$note_criteria = null;
$actor_criteria = null;
if (!empty($note_parts)) {
if (!empty($note_parts)) { // @phpstan-ignore-line
self::connectParts($note_parts, $note_criteria_arr, $last_op, $eb, force: true);
$note_criteria = new Criteria($eb->orX(...$note_criteria_arr));
}
if (!empty($actor_parts)) {
if (!empty($actor_parts)) { // @phpstan-ignore-line
self::connectParts($actor_parts, $actor_criteria_arr, $last_op, $eb, force: true);
$actor_criteria = new Criteria($eb->orX(...$actor_criteria_arr));
}