From a49849796fac26e45efce51f99ba165ff23ea9d7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 17 Dec 2022 05:18:26 +0000 Subject: [PATCH] [ci-review] Rector Rectify --- src/Reflection/ReflectionResolver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Reflection/ReflectionResolver.php b/src/Reflection/ReflectionResolver.php index 1850ed4fb45..d0b2019d6c1 100644 --- a/src/Reflection/ReflectionResolver.php +++ b/src/Reflection/ReflectionResolver.php @@ -262,15 +262,15 @@ private function resolveFunctionReflectionFromFuncCall( if ($funcCall->name instanceof Name) { if ($this->reflectionProvider->hasFunction($funcCall->name, $scope)) { - $function = $this->reflectionProvider->getFunction($funcCall->name, $scope); - $fileName = (string) $function->getFileName(); + $functionReflection = $this->reflectionProvider->getFunction($funcCall->name, $scope); + $fileName = (string) $functionReflection->getFileName(); // function inside phpstan.phar may conflict with defined function if (str_contains($fileName, 'phpstan.phar')) { return null; } - return $function; + return $functionReflection; } return null;