mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix bugs
This commit is contained in:
parent
23f5d66516
commit
657f9db2e0
@ -207,7 +207,7 @@ class CallAnalyzer
|
||||
$old_calling_method_id = $context->calling_method_id;
|
||||
|
||||
if ($fq_class_name === $source->getFQCLN()) {
|
||||
$class_analyzer->getMethodMutations(strtolower($declaring_method_id->method_name), $context);
|
||||
$class_analyzer->getMethodMutations($declaring_method_id->method_name, $context);
|
||||
} else {
|
||||
$declaring_fq_class_name = $declaring_method_id->fq_class_name;
|
||||
|
||||
|
@ -402,10 +402,6 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements PhpParse
|
||||
$visibility_map[$new_name] = ClassLikeAnalyzer::VISIBILITY_PRIVATE;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
$visibility_map[$new_name] = ClassLikeAnalyzer::VISIBILITY_PRIVATE;
|
||||
break;
|
||||
|
||||
case 32:
|
||||
$final_map[$new_name] = true;
|
||||
break;
|
||||
|
@ -221,6 +221,11 @@ class ClassLikeStorage
|
||||
*/
|
||||
public $trait_alias_map = [];
|
||||
|
||||
/**
|
||||
* @var array<lowercase-string, bool>
|
||||
*/
|
||||
public $trait_final_map = [];
|
||||
|
||||
/**
|
||||
* @var array<string, int>
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user