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 8e31f24 commit 4322f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cloud/DTO/JobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Kiboko\Component\Satellite\Cloud\DTO;

use Kiboko\Component\Satellite\Cloud\DTO;
use Kiboko\Component\Satellite\Cloud\DTO\Workflow\JobInterface;

readonly class JobList implements \Countable, \IteratorAggregate
{
Expand All @@ -15,8 +16,7 @@
private array $jobs;

/**
* @var list<DTO\Workflow\JobInterface> $jobs
* @phpstan-var list<DTO\Workflow\Pipeline|DTO\Workflow\Action> $jobs
* @param JobInterface<DTO\Workflow\Pipeline|DTO\Workflow\Action> ...$job
*/
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 @param for parameter $job contains generic type Kiboko\Component\Satellite\Cloud\DTO\Workflow\JobInterface<Kiboko\Component\Satellite\Cloud\DTO\Workflow\Action|Kiboko\Component\Satellite\Cloud\DTO\Workflow\Pipeline> but interface Kiboko\Component\Satellite\Cloud\DTO\Workflow\JobInterface is not generic.
DTO\Workflow\JobInterface ...$job,
Expand Down

0 comments on commit 4322f24

Please sign in to comment.