From 78577fd624e2648bc3a8911ad7fab8df254e3be2 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Tue, 23 Feb 2021 17:31:14 -0500 Subject: [PATCH] Fix #5257 - allow object::foo() call --- .../Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php index 98f442ed9..c96f81074 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php @@ -865,6 +865,7 @@ class AtomicStaticCallAnalyzer if ($lhs_type_part instanceof Type\Atomic\TMixed || $lhs_type_part instanceof Type\Atomic\TTemplateParam || $lhs_type_part instanceof Type\Atomic\TClassString + || $lhs_type_part instanceof Type\Atomic\TObject ) { if ($stmt->name instanceof PhpParser\Node\Identifier) { $codebase->analyzer->addMixedMemberName(