mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Treat self as absolute calss
This commit is contained in:
parent
734aee73a5
commit
1bd61e89af
@ -348,8 +348,11 @@ class ClassMethodChecker extends FunctionChecker
|
||||
else {
|
||||
if ($param->type instanceof PhpParser\Node\Name\FullyQualified) {
|
||||
$param_type = implode('\\', $param->type->parts);
|
||||
}
|
||||
else {
|
||||
|
||||
} elseif ($param->type->parts === ['self']) {
|
||||
$param_type = $this->_absolute_class;
|
||||
|
||||
} else {
|
||||
$param_type = ClassChecker::getAbsoluteClassFromString(implode('\\', $param->type->parts), $this->_namespace, $this->_aliased_classes);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user