Skip to content

Commit

Permalink
Fix unused call inconsistencies/false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Feb 23, 2024
1 parent df1ed40 commit 6125c55
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ public static function analyze(
&& !$context->inside_call
&& !$context->inside_return
&& !$method_storage->assertions
&& !$method_storage->if_true_assertions
&& !$method_storage->if_false_assertions
&& !$method_storage->throws
&& (!$method_storage->throws
|| !$context->inside_try)
&& !($method_storage->return_type
&& ($method_storage->return_type->isVoid() || $method_storage->return_type->isNever()))
) {
IssueBuffer::maybeAdd(
new UnusedMethodCall(
Expand Down

0 comments on commit 6125c55

Please sign in to comment.