Skip to content

Commit f07429c

Browse files
committed
Support get_page_by_path()
1 parent 2b23281 commit f07429c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GetPostDynamicFunctionReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GetPostDynamicFunctionReturnTypeExtension implements DynamicFunctionReturn
2222
{
2323
public function isFunctionSupported(FunctionReflection $functionReflection): bool
2424
{
25-
return $functionReflection->getName() === 'get_post';
25+
return in_array($functionReflection->getName(), ['get_post', 'get_page_by_path'], true);
2626
}
2727

2828
public function getTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $functionCall, Scope $scope): Type

0 commit comments

Comments
 (0)