Skip to content

Commit

Permalink
Use maybeAdd instead of accepts.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Dec 8, 2021
1 parent 5808d4e commit ba881c8
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,14 +640,14 @@ private static function analyzeOperands(
$result_type
);
} else {
if ($statements_source && IssueBuffer::accepts(
new InvalidOperand(
"Cannot add Decimal\\Decimal to {$non_decimal_type->getId()}",
new CodeLocation($statements_source, $parent)
),
$statements_source->getSuppressedIssues()
)) {
// fall through
if ($statements_source) {
IssueBuffer::maybeAdd(
new InvalidOperand(
"Cannot add Decimal\\Decimal to {$non_decimal_type->getId()}",
new CodeLocation($statements_source, $parent)
),
$statements_source->getSuppressedIssues()
);
}
}

Expand Down

0 comments on commit ba881c8

Please sign in to comment.