From 00ef9df9dcec71965aff2253b4c8f43611cc74c5 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 20 Jun 2024 15:44:56 +0200 Subject: [PATCH] Fixed typo in ParameterOutExtensions --- src/Analyser/NodeScopeResolver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Analyser/NodeScopeResolver.php b/src/Analyser/NodeScopeResolver.php index 78fbf2ff67..cc98b11995 100644 --- a/src/Analyser/NodeScopeResolver.php +++ b/src/Analyser/NodeScopeResolver.php @@ -4550,7 +4550,7 @@ private function processArgs( $argValue = $arg->value; if ($argValue instanceof Variable && is_string($argValue->name)) { if ($argValue->name !== 'this') { - $paramOutType = $this->getParameterOutExtensionsTypes($callLike, $calleeReflection, $currentParameter, $scope); + $paramOutType = $this->getParameterOutExtensionsType($callLike, $calleeReflection, $currentParameter, $scope); if ($paramOutType !== null) { $byRefType = $paramOutType; } @@ -4625,7 +4625,7 @@ private function getParameterTypeFromParameterClosureTypeExtension(CallLike $cal /** * @param MethodReflection|FunctionReflection|null $calleeReflection */ - public function getParameterOutExtensionsTypes(CallLike $callLike, $calleeReflection, ParameterReflection $currentParameter, MutatingScope $scope): ?Type + private function getParameterOutExtensionsType(CallLike $callLike, $calleeReflection, ParameterReflection $currentParameter, MutatingScope $scope): ?Type { $paramOutTypes = []; if ($callLike instanceof FuncCall && $calleeReflection instanceof FunctionReflection) {