From 55aceb2b6d52d1bee97ae8f71d9f0521102dcf5f Mon Sep 17 00:00:00 2001 From: Brown Date: Tue, 7 Jan 2020 13:18:24 -0500 Subject: [PATCH] Add if --- src/Psalm/Internal/Analyzer/TypeAnalyzer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/TypeAnalyzer.php b/src/Psalm/Internal/Analyzer/TypeAnalyzer.php index 1b854b1b7..c5dc4c4f8 100644 --- a/src/Psalm/Internal/Analyzer/TypeAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/TypeAnalyzer.php @@ -1878,7 +1878,9 @@ class TypeAnalyzer $generic_params ); - $container_type_part->remapped_params = false; + if ($container_type_part instanceof TGenericObject) { + $container_type_part->remapped_params = false; + } } }