Skip to content

Commit f683231

Browse files
xepozzroxblnfk
andauthored
chore: enhance dx while working with WorkflowRunInterface::getResult($type) (#678)
Co-authored-by: Aleksei Gagarin <[email protected]>
1 parent dc9c0c5 commit f683231

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

resources/.phpstorm.meta.php/.phpstorm.meta.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,8 @@
6262
override(\Temporal\Client\WorkflowClient::newRunningWorkflowStub(), map([
6363
'' => type(0),
6464
]));
65+
66+
override(\Temporal\Client\WorkflowStubInterface::getResult(), map([
67+
'' => '@',
68+
]));
6569
}

resources/workflow.meta-storm.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,11 @@
7474
<collection name="temporal/sdk:activity-class" argument="0" />
7575
<stopCompletion />
7676
</classMethod>
77+
<classMethod
78+
class="\Temporal\Workflow\WorkflowRunInterface"
79+
method="getResult"
80+
argument="0">
81+
<languageInjection language="InjectablePHP" prefix="/** @var " suffix="$_ **/" />
82+
</classMethod>
7783
</definitions>
7884
</meta-storm>

0 commit comments

Comments
 (0)