diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php index 15afcdc7b..eafd74058 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php @@ -778,7 +778,9 @@ class ExistingAtomicMethodCallAnalyzer extends CallAnalyzer $replacement->rule[] = new Assertion\IsType(new TTemplateParam( $assertion->type->param_name, - reset($potential_assertion_providing_classlike_storage->template_types[$assertion->type->param_name]), + reset( + $potential_assertion_providing_classlike_storage->template_types[$assertion->type->param_name], + ), $potential_assertion_providing_class, ));