Skip to content

Commit

Permalink
Resolve fail test #10807
Browse files Browse the repository at this point in the history
Resolved problem:
```
Psalm\Tests\AssertAnnotationTest::testAssertsAllongCallStaticMethodWork
Psalm\Exception\CodeException: LessSpecificReturnStatement
The type 'string' is more general than the declared return type 'non-empty-string' for returnNonEmpty
```
  • Loading branch information
issidorov authored and weirdan committed Mar 11, 2024
1 parent 2a91bd6 commit fe42e88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ private static function handleNamedCall(
}
}

if (!$callstatic_method_exists || $class_storage->hasSealedMethods($config)) {
if ($naive_method_exists || !$callstatic_method_exists || $class_storage->hasSealedMethods($config)) {
$does_method_exist = MethodAnalyzer::checkMethodExists(
$codebase,
$method_id,
Expand Down

0 comments on commit fe42e88

Please sign in to comment.