Skip to content

Commit

Permalink
Fixed typo in ParameterOutExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Jun 20, 2024
1 parent 3cbf045 commit 00ef9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 00ef9df

Please sign in to comment.