-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
readonly class JobList implements \Countable, \IteratorAggregate | ||
{ | ||
/** @var DTO\Workflow\JobInterface<DTO\Workflow\Pipeline|DTO\Workflow\Action>[] */ | ||
private array $jobs; | ||
Check failure on line 12 in src/Cloud/DTO/JobList.php GitHub Actions / phpstan
|
||
|
||
public function __construct( | ||
|
@@ -27,11 +28,6 @@ public function getIterator(): \Traversable | |
public function codes(): array | ||
{ | ||
$jobs = $this->jobs; | ||
|
||
/** | ||
* @var DTO\Workflow\Pipeline|DTO\Workflow\Action $left | ||
* @var DTO\Workflow\Pipeline|DTO\Workflow\Action $right | ||
*/ | ||
usort($jobs, fn (DTO\Workflow\JobInterface $left, DTO\Workflow\JobInterface $right) => $left->order <=> $right->order); | ||
Check failure on line 31 in src/Cloud/DTO/JobList.php GitHub Actions / phpstan
Check failure on line 31 in src/Cloud/DTO/JobList.php GitHub Actions / phpstan
|
||
|
||
return array_map(fn (DTO\Workflow\JobInterface $job) => $job->code->asString(), $jobs); | ||
Check failure on line 33 in src/Cloud/DTO/JobList.php GitHub Actions / phpstan
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters