Skip to content

Commit

Permalink
Fixed PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Oct 26, 2023
1 parent eb50c68 commit 8e31f24
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Cloud/DTO/JobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@

use Kiboko\Component\Satellite\Cloud\DTO;

/** @phpstan-ignore-next-line */
readonly class JobList implements \Countable, \IteratorAggregate
{
/**
* @var list<DTO\Workflow\JobInterface> $jobs
* @phpstan-var list<DTO\Workflow\Pipeline|DTO\Workflow\Action> $jobs
*/
private array $jobs;

/**
* @var list<DTO\Workflow\JobInterface> $jobs
* @phpstan-var list<DTO\Workflow\Pipeline|DTO\Workflow\Action> $jobs
*/
public function __construct(

Check failure on line 21 in src/Cloud/DTO/JobList.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @var above a method has no effect.
DTO\Workflow\JobInterface ...$job,
) {
Expand Down

0 comments on commit 8e31f24

Please sign in to comment.