diff --git a/src/Psalm/Checker/Statements/Expression/CallChecker.php b/src/Psalm/Checker/Statements/Expression/CallChecker.php index a36099f03..bd974c8bb 100644 --- a/src/Psalm/Checker/Statements/Expression/CallChecker.php +++ b/src/Psalm/Checker/Statements/Expression/CallChecker.php @@ -1103,7 +1103,9 @@ class CallChecker if ($stmt->class instanceof PhpParser\Node\Name) { $fq_class_name = null; - if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) { + if (count($stmt->class->parts) === 1 + && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true) + ) { if ($stmt->class->parts[0] === 'parent') { $fq_class_name = $statements_checker->getParentFQCLN(); diff --git a/src/Psalm/Checker/Statements/Expression/FetchChecker.php b/src/Psalm/Checker/Statements/Expression/FetchChecker.php index 153b1b6cd..8ca632ace 100644 --- a/src/Psalm/Checker/Statements/Expression/FetchChecker.php +++ b/src/Psalm/Checker/Statements/Expression/FetchChecker.php @@ -574,7 +574,9 @@ class FetchChecker $fq_class_name = null; if ($stmt->class instanceof PhpParser\Node\Name) { - if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) { + if (count($stmt->class->parts) === 1 + && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true) + ) { if ($stmt->class->parts[0] === 'parent') { $fq_class_name = $statements_checker->getParentFQCLN(); diff --git a/src/Psalm/Checker/Statements/ExpressionChecker.php b/src/Psalm/Checker/Statements/ExpressionChecker.php index c392deb17..39c4e645e 100644 --- a/src/Psalm/Checker/Statements/ExpressionChecker.php +++ b/src/Psalm/Checker/Statements/ExpressionChecker.php @@ -1416,7 +1416,9 @@ class ExpressionChecker && is_string($stmt->name) && $stmt->class instanceof PhpParser\Node\Name ) { - if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) { + if (count($stmt->class->parts) === 1 + && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true) + ) { if (!$this_class_name) { $fq_class_name = $stmt->class->parts[0]; } else {