@@ -35,6 +35,7 @@ public function __construct(private SignatureMapProvider $signatureMapProvider,
3535 public function findFunctionReflection (string $ functionName ): ?NativeFunctionReflection
3636 {
3737 $ lowerCasedFunctionName = strtolower ($ functionName );
38+ $ realFunctionName = $ lowerCasedFunctionName ;
3839 if (isset ($ this ->functionMap [$ lowerCasedFunctionName ])) {
3940 return $ this ->functionMap [$ lowerCasedFunctionName ];
4041 }
@@ -54,6 +55,7 @@ public function findFunctionReflection(string $functionName): ?NativeFunctionRef
5455 $ reflectionFunction = $ this ->reflector ->reflectFunction ($ functionName );
5556 $ reflectionFunctionAdapter = new ReflectionFunction ($ reflectionFunction );
5657 $ returnsByReference = TrinaryLogic::createFromBoolean ($ reflectionFunctionAdapter ->returnsReference ());
58+ $ realFunctionName = $ reflectionFunction ->getName ();
5759 if ($ reflectionFunction ->getFileName () !== null ) {
5860 $ fileName = $ reflectionFunction ->getFileName ();
5961 $ docComment = $ reflectionFunction ->getDocComment ();
@@ -127,7 +129,7 @@ public function findFunctionReflection(string $functionName): ?NativeFunctionRef
127129 }
128130
129131 $ functionReflection = new NativeFunctionReflection (
130- $ lowerCasedFunctionName ,
132+ $ realFunctionName ,
131133 $ variants ,
132134 $ throwType ,
133135 $ hasSideEffects ,
0 commit comments