Skip to content

Commit

Permalink
Added docBlock for execute method
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed May 22, 2024
1 parent 2b33e5d commit f2db48f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Console/Tools/ProgressIndicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public function getStatus(): ?Status
}


/**
* @template T of mixed
* @param callable(static): T $callback
* @return T|int
*/
public function execute(string $message, callable $callback): mixed
{
$this->progress->setFormat("[%status%] %message%\n");
Expand Down Expand Up @@ -120,7 +125,7 @@ public function execute(string $message, callable $callback): mixed
/**
* @template T of mixed
* @param T[] $values
* @param (callable(static, T, int|string): ?bool) $callback
* @param callable(static, T, int|string): mixed $callback
*/
public function iterate(iterable $values, callable $callback): void
{
Expand Down

0 comments on commit f2db48f

Please sign in to comment.