Skip to content

Commit df943d9

Browse files
github-actionsgithub-actions[bot]
authored andcommitted
style(php-cs-fixer): fix coding standards
1 parent 1b0e628 commit df943d9

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

src/Activity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public static function hasHeartbeatDetails(): bool
8484
* This method retrieves the payload that was passed into the last call of the {@see Activity::heartbeat()} method.
8585
*
8686
* @param Type|string|\ReflectionType|\ReflectionClass|null $type
87-
* @return mixed
8887
* @throws OutOfContextException in the absence of the activity execution context.
8988
*/
9089
public static function getHeartbeatDetails($type = null): mixed

src/Activity/ActivityContextInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function hasHeartbeatDetails(): bool;
4747
* @see Activity::getHeartbeatDetails()
4848
*
4949
* @param Type|string $type
50-
* @return mixed
5150
*/
5251
public function getLastHeartbeatDetails($type = null): mixed;
5352

@@ -61,8 +60,6 @@ public function doNotCompleteOnReturn(): void;
6160
/**
6261
* Use to notify workflow that activity execution is alive.
6362
*
64-
* @param mixed $details
65-
*
6663
* @throws ActivityCompletionException
6764
* @throws ActivityCanceledException
6865
* @throws ActivityPausedException

src/Internal/Activity/ActivityContext.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public function hasHeartbeatDetails(): bool
8989

9090
/**
9191
* @param Type|string $type
92-
* @return mixed
9392
*/
9493
public function getLastHeartbeatDetails($type = null): mixed
9594
{

src/Internal/Declaration/Dispatcher/Dispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ private function scopeMatches(int $scope): bool
8888
}
8989

9090
/**
91-
* @psalm-return FunctionExecutor
9291
*
9392
* @return \Closure(object, array): mixed
93+
* @psalm-return FunctionExecutor
9494
*/
9595
private function createExecutorFromMethod(\ReflectionMethod $fun): \Closure
9696
{
@@ -104,9 +104,9 @@ private function createExecutorFromMethod(\ReflectionMethod $fun): \Closure
104104
}
105105

106106
/**
107-
* @psalm-return FunctionExecutor
108107
*
109108
* @return \Closure(object, array): mixed
109+
* @psalm-return FunctionExecutor
110110
*/
111111
private function createExecutorFromFunction(\ReflectionFunction $fun): \Closure
112112
{

src/Promise.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ static function (iterable $array) use ($count, $cancellationQueue, $resolve, $re
153153
* The `$callback` function receives each item as an argument, where the item is
154154
* a fully resolved value of a promise or a value in `$promises`.
155155
*
156-
* @psalm-param PromiseMapCallback $map
157156
* @param iterable<int, PromiseInterface|mixed> $promises
157+
* @psalm-param PromiseMapCallback $map
158158
*/
159159
public static function map(iterable $promises, callable $map): PromiseInterface
160160
{
@@ -203,10 +203,10 @@ static function (mixed $mapped) use ($i, &$values, &$toResolve, $resolve): void
203203
* promises and/or values. The `$reduce` callback may return either a value or a promise,
204204
* and `$initial` may be a promise or a value for the starting value.
205205
*
206-
* @psalm-param PromiseReduceCallback $reduce
207206
* @param iterable<int, PromiseInterface|mixed> $promises
208207
* @param callable(mixed $current, mixed $carry, int $current, positive-int $items): mixed $reduce
209208
* @param mixed $initial
209+
* @psalm-param PromiseReduceCallback $reduce
210210
*/
211211
public static function reduce(iterable $promises, callable $reduce, $initial = null): PromiseInterface
212212
{

0 commit comments

Comments
 (0)