Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 967621f

Browse files
Use real native function name instead of lowercase one
1 parent d39e5a8 commit 967621f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/Reflection/SignatureMap/NativeFunctionReflectionProvider.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /