File tree Expand file tree Collapse file tree 8 files changed +69
-4
lines changed
Expand file tree Collapse file tree 8 files changed +69
-4
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <files psalm-version =" 6.13.1@1e3b7f0a8ab32b23197b91107adc0a7ed8a05b51 " >
2+ <files psalm-version =" 6.14.3@d0b040a91f280f071c1abcb1b77ce3822058725a " >
33 <file src =" src/Activity.php" >
44 <ImplicitToStringCast >
55 <code ><![CDATA[ $type]]> </code >
884884 <code ><![CDATA[ ?string]]> </code >
885885 </MoreSpecificReturnType >
886886 </file >
887+ <file src =" src/Internal/Promise/CancellationQueue.php" >
888+ <PossiblyNullArrayOffset >
889+ <code ><![CDATA[ $this->queue]]> </code >
890+ </PossiblyNullArrayOffset >
891+ </file >
887892 <file src =" src/Internal/Queue/ArrayQueue.php" >
888893 <InvalidDocblock >
889894 <code ><![CDATA[ protected array $commands = [];]]> </code >
Original file line number Diff line number Diff line change 2929 argument =" 0"
3030 >
3131 <collection name =" temporal/sdk:workflow-class" argument =" 0" />
32+ <collection name =" temporal/sdk:workflow-type" argument =" 0" />
3233 <stopCompletion />
3334 </classMethod >
35+ <classMethod
36+ class =" \Temporal\Client\Schedule\Action\StartWorkflowAction"
37+ method =" new"
38+ argument =" 0"
39+ >
40+ <collection name =" temporal/sdk:workflow-class" />
41+ <collection name =" temporal/sdk:workflow-type" argument =" 0" />
42+ <stopCompletion />
43+ </classMethod >
44+ <classMethod
45+ class =" \Temporal\DataConverter\ValuesInterface"
46+ method =" getValue"
47+ argument =" 1"
48+ >
49+ <languageInjection language =" InjectablePHP" prefix =" /** @var " suffix =" $_ **/" />
50+ </classMethod >
3451 </definitions >
3552</meta-storm >
Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ public function cancel(): void
110110 }
111111
112112 /**
113- * @deprecated
113+ * @deprecated use {@see catch()} instead
114114 */
115115 public function otherwise (callable $ onRejected ): PromiseInterface
116116 {
117117 return $ this ->catch ($ onRejected );
118118 }
119119
120120 /**
121- * @deprecated
121+ * @deprecated use {@see finally()} instead
122122 */
123123 public function always (callable $ onFulfilledOrRejected ): PromiseInterface
124124 {
Original file line number Diff line number Diff line change @@ -259,11 +259,17 @@ public function finally(callable $onFulfilledOrRejected): PromiseInterface
259259 return $ this ->deferred ->promise ()->finally ($ onFulfilledOrRejected );
260260 }
261261
262+ /**
263+ * @deprecated use {@see catch()} instead
264+ */
262265 public function otherwise (callable $ onRejected ): PromiseInterface
263266 {
264267 return $ this ->catch ($ onRejected );
265268 }
266269
270+ /**
271+ * @deprecated use {@see finally()} instead
272+ */
267273 public function always (callable $ onFulfilledOrRejected ): PromiseInterface
268274 {
269275 return $ this ->finally ($ onFulfilledOrRejected );
Original file line number Diff line number Diff line change @@ -901,7 +901,7 @@ public static function newUntypedExternalWorkflowStub(WorkflowExecution $executi
901901 * ->then(function ($result) {
902902 * // Execution result
903903 * })
904- * ->otherwise (function (\Throwable $error) {
904+ * ->catch (function (\Throwable $error) {
905905 * // Execution error
906906 * })
907907 * ;
Original file line number Diff line number Diff line change 1+ <meta-storm >
2+ <definitions >
3+ <classConstructor class =" \Temporal\Tests\Acceptance\App\Attribute\Stub" argument =" 0" >
4+ <collection name =" temporal/sdk:workflow-type" />
5+ </classConstructor >
6+ </definitions >
7+ </meta-storm >
Original file line number Diff line number Diff line change @@ -25,10 +25,25 @@ class RetryOptions
2525 * @param int<0, max> $maximumAttempts
2626 */
2727 public function __construct (
28+ /**
29+ * @see CommonOptions::withInitialInterval()
30+ */
2831 public ?string $ initialInterval = CommonOptions::DEFAULT_INITIAL_INTERVAL ,
32+ /**
33+ * @see CommonOptions::withBackoffCoefficient()
34+ */
2935 public float $ backoffCoefficient = CommonOptions::DEFAULT_BACKOFF_COEFFICIENT ,
36+ /**
37+ * @see CommonOptions::withMaximumInterval()
38+ */
3039 public ?string $ maximumInterval = CommonOptions::DEFAULT_MAXIMUM_INTERVAL ,
40+ /**
41+ * @see CommonOptions::withMaximumAttempts()
42+ */
3143 public int $ maximumAttempts = CommonOptions::DEFAULT_MAXIMUM_ATTEMPTS ,
44+ /**
45+ * @see CommonOptions::withNonRetryableExceptions()
46+ */
3247 public array $ nonRetryableExceptions = CommonOptions::DEFAULT_NON_RETRYABLE_EXCEPTIONS ,
3348 ) {}
3449
Original file line number Diff line number Diff line change @@ -23,11 +23,26 @@ final class Stub
2323 */
2424 public function __construct (
2525 public string $ type ,
26+ /**
27+ * @see WorkflowOptions::withEagerStart()
28+ */
2629 public bool $ eagerStart = false ,
30+ /**
31+ * @see WorkflowOptions::withWorkflowId()
32+ */
2733 public ?string $ workflowId = null ,
34+ /**
35+ * @see WorkflowOptions::withWorkflowExecutionTimeout()
36+ */
2837 public ?string $ executionTimeout = null ,
2938 public array $ args = [],
39+ /**
40+ * @see WorkflowOptions::withMemo()
41+ */
3042 public array $ memo = [],
43+ /**
44+ * @see WorkflowOptions::withRetryOptions()
45+ */
3146 ?RetryOptions $ retryOptions = null ,
3247 ) {
3348 $ this ->retryOptions = $ retryOptions ?->toRetryOptions();
You can’t perform that action at this time.
0 commit comments