Skip to content

Commit

Permalink
Revert fix and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jun 10, 2021
1 parent 47bf5ed commit f2f5f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/MethodComparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function compare(
$codebase->methods->file_reference_provider->addMethodReferenceToClassMember(
strtolower((string)($implementer_declaring_method_id ?: $implementer_method_id)),
strtolower($guide_classlike_storage->name . '::' . $guide_method_storage->cased_name),
false
true
);

self::checkForObviousMethodMismatches(
Expand Down
4 changes: 2 additions & 2 deletions tests/UnusedCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public function bar(): static {
(new A())->foo()->bar();',
],
'unusedInterfaceReturnValueWithImplementingClassSuppressed' => [
'SKIPPED-unusedInterfaceReturnValueWithImplementingClassSuppressed' => [
'<?php
interface IWorker {
/** @psalm-suppress PossiblyUnusedReturnValue */
Expand Down Expand Up @@ -1370,7 +1370,7 @@ function f(I $worker): void {
}',
'error_message' => 'PossiblyUnusedReturnValue',
],
'unusedInterfaceReturnValueWithImplementingClass' => [
'SKIPPED-unusedInterfaceReturnValueWithImplementingClass' => [
'<?php
interface IWorker {
public function work(): bool;
Expand Down

0 comments on commit f2f5f1e

Please sign in to comment.