Skip to content

Commit bbc187b

Browse files
committed
fix build
1 parent 08ed3e4 commit bbc187b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Analyser/Ignore/IgnoredErrorHelper.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,18 @@ public function initialize(): IgnoredErrorHelperResult
106106
continue;
107107
}
108108

109+
$reportUnmatched = (bool) ($uniquedExpandedIgnoreErrors[$key]['reportUnmatched'] ?? $this->reportUnmatchedIgnoredErrors);
110+
if (!$reportUnmatched) {
111+
$reportUnmatched = $ignoreError['reportUnmatched'] ?? $this->reportUnmatchedIgnoredErrors;
112+
}
113+
109114
$uniquedExpandedIgnoreErrors[$key] = [
110115
'message' => $ignoreError['message'] ?? null,
111116
'rawMessage' => $ignoreError['rawMessage'] ?? null,
112117
'path' => $ignoreError['path'],
113118
'identifier' => $ignoreError['identifier'] ?? null,
114119
'count' => ($uniquedExpandedIgnoreErrors[$key]['count'] ?? 1) + ($ignoreError['count'] ?? 1),
115-
'reportUnmatched' => ($uniquedExpandedIgnoreErrors[$key]['reportUnmatched'] ?? $this->reportUnmatchedIgnoredErrors) || ($ignoreError['reportUnmatched'] ?? $this->reportUnmatchedIgnoredErrors),
120+
'reportUnmatched' => $reportUnmatched,
116121
];
117122
}
118123

0 commit comments

Comments
 (0)