Skip to content

Commit b2b82e1

Browse files
committed
add realpath to NativeFunctionDynamicFunctionReturnTypeExtension
1 parent 6cba521 commit b2b82e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ src/Command/ReleaseCommand.php:51
3939
------------------------------------------------------------------------------------------
4040
```
4141

42-
The config also loads few return type extensions.
42+
<br>
4343

4444
### Return Type Extensions
4545

src/TypeExtension/FuncCall/NativeFunctionDynamicFunctionReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class NativeFunctionDynamicFunctionReturnTypeExtension implements DynamicF
1818
{
1919
public function isFunctionSupported(FunctionReflection $functionReflection): bool
2020
{
21-
return in_array($functionReflection->getName(), ['getcwd', 'dirname'], true);
21+
return in_array($functionReflection->getName(), ['getcwd', 'dirname', 'realpath'], true);
2222
}
2323

2424
public function getTypeFromFunctionCall(

0 commit comments

Comments
 (0)