mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Resolved all tests
Resolved problem: ``` 1) MagicMethodAnnotationTest::testSealAllMethodsSetToFalseWithStatic Psalm\Exception\CodeException: UndefinedMagicMethod - somefile.php:8:15 - Magic method B::foo does not exist ```
This commit is contained in:
parent
0ba346c5a0
commit
5f89fa1730
@ -758,14 +758,18 @@ final class AtomicStaticCallAnalyzer
|
||||
}
|
||||
}
|
||||
|
||||
$does_method_exist = MethodAnalyzer::checkMethodExists(
|
||||
$codebase,
|
||||
$method_id,
|
||||
new CodeLocation($statements_analyzer, $stmt),
|
||||
$statements_analyzer->getSuppressedIssues(),
|
||||
$context->calling_method_id,
|
||||
$with_pseudo,
|
||||
);
|
||||
if (!$callstatic_method_exists || $class_storage->hasSealedMethods($config)) {
|
||||
$does_method_exist = MethodAnalyzer::checkMethodExists(
|
||||
$codebase,
|
||||
$method_id,
|
||||
new CodeLocation($statements_analyzer, $stmt),
|
||||
$statements_analyzer->getSuppressedIssues(),
|
||||
$context->calling_method_id,
|
||||
$with_pseudo,
|
||||
);
|
||||
} else {
|
||||
$does_method_exist = null;
|
||||
}
|
||||
|
||||
if (!$does_method_exist) {
|
||||
if (ArgumentsAnalyzer::analyze(
|
||||
|
Loading…
x
Reference in New Issue
Block a user