Skip to content

Commit fe42e88

Browse files
issidorovweirdan
authored andcommitted
Resolve fail test #10807
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 ```
1 parent 2a91bd6 commit fe42e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ private static function handleNamedCall(
789789
}
790790
}
791791

792-
if (!$callstatic_method_exists || $class_storage->hasSealedMethods($config)) {
792+
if ($naive_method_exists || !$callstatic_method_exists || $class_storage->hasSealedMethods($config)) {
793793
$does_method_exist = MethodAnalyzer::checkMethodExists(
794794
$codebase,
795795
$method_id,

0 commit comments

Comments
 (0)