@@ -23,7 +23,7 @@ final class ActivityStub
2323 *
2424 * @template T of object
2525 *
26- * @param class-string<T> $activity
26+ * @param class-string<T> $class
2727 * @param non-empty-string|null $taskQueue
2828 * @param int<0, max>|null $retryAttempts Maximum number of attempts. When exceeded the retries stop even
2929 * if not expired yet. If not set or set to 0, it means unlimited, and rely on activity
@@ -60,7 +60,7 @@ final class ActivityStub
6060 * @return T|ActivityProxy
6161 */
6262 public static function activity (
63- string $ activity ,
63+ string $ class ,
6464 ?string $ taskQueue = null ,
6565 ?int $ retryAttempts = null ,
6666 \DateInterval |string |int |null $ retryInitInterval = null ,
@@ -74,7 +74,7 @@ public static function activity(
7474 \Stringable |string |null $ activityId = null ,
7575 int $ cancellationType = 0 ,
7676 ): object {
77- $ attributes = self ::readAttributes ($ activity );
77+ $ attributes = self ::readAttributes ($ class );
7878
7979 // Retry options
8080 $ retryOptions = RetryOptions::create (
@@ -99,7 +99,7 @@ public static function activity(
9999 $ activityId === null or $ options = $ options ->withActivityId ((string )$ activityId );
100100 $ cancellationType === null or $ options = $ options ->withCancellationType ($ cancellationType );
101101
102- return Workflow::newActivityStub ($ activity , $ options );
102+ return Workflow::newActivityStub ($ class , $ options );
103103 }
104104
105105 /**
0 commit comments