diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php index e178b5bb9c1..46c217e2473 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php @@ -29,6 +29,7 @@ use function implode; use function array_values; use function array_map; +use function reset; /** * @internal @@ -477,7 +478,7 @@ function ($bound) { $fq_class_name, array_values( array_map( - function($map) { + function ($map) { return clone reset($map); }, $storage->template_types