diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php index 538e43bd48d..c397918e8b8 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php @@ -369,6 +369,8 @@ public static function analyze( } } } + + return true; } if ($var_id) { diff --git a/tests/FileManipulation/ClassMoveTest.php b/tests/FileManipulation/ClassMoveTest.php index e40e62194ab..5100b03087a 100644 --- a/tests/FileManipulation/ClassMoveTest.php +++ b/tests/FileManipulation/ClassMoveTest.php @@ -749,6 +749,29 @@ class Hello extends \Foo\Base {} 'Foo\Hello' => 'Foo\Bar\Hello', ], ], + 'renamesAllStaticPropReferences' => [ + 'input' => ' ' [ + 'Foo\Bar' => 'Zoo\Baz', + ], + ], ]; } }