Skip to content

Commit

Permalink
Add AfterFunctionCallAnalysisEvent support for Types::setType
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed Sep 11, 2022
1 parent 252c2eb commit 59c3d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Toolkit/Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public function setType(
StatementsSource |
NodeTypeProvider |
AfterMethodCallAnalysisEvent |
AfterFunctionCallAnalysisEvent |
MethodReturnTypeProviderEvent |
AfterStatementAnalysisEvent |
FunctionReturnTypeProviderEvent |
Expand All @@ -183,6 +184,7 @@ public function setType(
$to instanceof FunctionReturnTypeProviderEvent => $to->getStatementsSource()->getNodeTypeProvider(),
$to instanceof AfterExpressionAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
$to instanceof AfterMethodCallAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
$to instanceof AfterFunctionCallAnalysisEvent => $to->getStatementsSource()->getNodeTypeProvider(),
};

$provider->setType($for, $type);
Expand Down

0 comments on commit 59c3d50

Please sign in to comment.