mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Ignore self calls as well
This commit is contained in:
parent
a7baa7e928
commit
d6e2e786db
@ -2161,7 +2161,7 @@ class CallChecker
|
||||
if (strpos($function_name, '::') !== false) {
|
||||
list($callable_fq_class_name) = explode('::', $function_name);
|
||||
|
||||
if ($callable_fq_class_name !== 'parent') {
|
||||
if ($callable_fq_class_name !== 'parent' && $callable_fq_class_name !== 'self') {
|
||||
if (ClassLikeChecker::checkFullyQualifiedClassLikeName(
|
||||
$project_checker,
|
||||
$callable_fq_class_name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user