@@ -19,7 +19,7 @@ class ActivityInfoTest extends TestCase
1919{
2020 #[Test]
2121 public static function retryPolicy (
22- #[Stub('Extra_Activity_ActivityInfo ' , args: [TestWorkflow::ARG_RETRY_POLICY ])]
22+ #[Stub('Extra_Activity_ActivityInfo ' , args: [TestWorkflow::ARG_RETRY_OPTIONS ])]
2323 WorkflowStubInterface $ stub ,
2424 ): void {
2525 self ::markTestSkipped ('See https://github.com/temporalio/sdk-php/issues/602 ' );
@@ -39,17 +39,17 @@ public static function retryPolicy(
3939#[WorkflowInterface]
4040class TestWorkflow
4141{
42- public const ARG_RETRY_POLICY = 'retryPolicy ' ;
42+ public const ARG_RETRY_OPTIONS = 'retryPolicy ' ;
4343
4444 #[WorkflowMethod(name: "Extra_Activity_ActivityInfo " )]
4545 public function handle (string $ arg )
4646 {
4747 return yield match ($ arg ) {
48- self ::ARG_RETRY_POLICY => $ this ->getRetryPolicy (),
48+ self ::ARG_RETRY_OPTIONS => $ this ->getRetryOptions (),
4949 };
5050 }
5151
52- private function getRetryPolicy (): PromiseInterface
52+ private function getRetryOptions (): PromiseInterface
5353 {
5454 return Workflow::newActivityStub (
5555 TestActivity::class,
@@ -63,16 +63,16 @@ private function getRetryPolicy(): PromiseInterface
6363 )
6464 ->withScheduleToCloseTimeout (10 ),
6565 )
66- ->retryPolicy ();
66+ ->retryOptions ();
6767 }
6868}
6969
7070#[Activity \ActivityInterface(prefix: 'Extra_Activity_ActivityInfo. ' )]
7171class TestActivity
7272{
7373 #[Activity \ActivityMethod]
74- public function retryPolicy ()
74+ public function retryOptions ()
7575 {
76- return Activity::getInfo ()->retryPolicy ;
76+ return Activity::getInfo ()->retryOptions ;
7777 }
7878}
0 commit comments