1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Ignore self calls as well

This commit is contained in:
Matt Brown 2017-08-11 19:09:15 -04:00
parent a7baa7e928
commit d6e2e786db

View File

@ -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,