Skip to content

Commit 59c3d50

Browse files
committed
Add AfterFunctionCallAnalysisEvent support for Types::setType
1 parent 252c2eb commit 59c3d50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Toolkit/Types.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public function setType(
167167
StatementsSource |
168168
NodeTypeProvider |
169169
AfterMethodCallAnalysisEvent |
170+
AfterFunctionCallAnalysisEvent |
170171
MethodReturnTypeProviderEvent |
171172
AfterStatementAnalysisEvent |
172173
FunctionReturnTypeProviderEvent |
@@ -183,6 +184,7 @@ public function setType(
183184
$to instanceof FunctionReturnTypeProviderEvent => $to->getStatementsSource()->getNodeTypeProvider(),
184185
$to instanceof AfterExpressionAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
185186
$to instanceof AfterMethodCallAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
187+
$to instanceof AfterFunctionCallAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
186188
};
187189

188190
$provider->setType($for, $type);

0 commit comments

Comments
 (0)