Fixing PHPStan level 9 issues #73
Annotations
10 errors
phpstan:
src/Pipeline.php#L30
Method Kiboko\Component\Pipeline\Pipeline::__construct() has parameter $runner with generic interface Kiboko\Contract\Pipeline\PipelineRunnerInterface but does not specify its types: Type
|
phpstan:
src/Pipeline.php#L107
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, iterable given.
|
phpstan:
src/Pipeline.php#L108
Parameter #2 $async of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Generator<mixed, mixed, Kiboko\Contract\Bucket\ResultBucketInterface<mixed>, void>, Generator<mixed, Kiboko\Contract\Bucket\ResultBucketInterface<OutputType>|Kiboko\Contract\Bucket\ResultBucketInterface<void>, InputType|null, void> given.
|
phpstan:
src/Pipeline.php#L115
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, ArrayIterator<int, null> given.
|
phpstan:
src/Pipeline.php#L126
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, iterable given.
|
phpstan:
src/Pipeline.php#L127
Parameter #2 $async of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Generator<mixed, mixed, Kiboko\Contract\Bucket\ResultBucketInterface<mixed>, void>, Generator<mixed, Kiboko\Contract\Bucket\ResultBucketInterface<OutputType>|Kiboko\Contract\Bucket\ResultBucketInterface<void>, InputType|null, void> given.
|
phpstan:
src/Pipeline.php#L149
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, iterable given.
|
phpstan:
src/Pipeline.php#L150
Parameter #2 $async of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Generator<mixed, mixed, Kiboko\Contract\Bucket\ResultBucketInterface<mixed>, void>, Generator<mixed, Kiboko\Contract\Bucket\ResultBucketInterface<OutputType>|Kiboko\Contract\Bucket\ResultBucketInterface<void>, InputType|null, void> given.
|
phpstan:
src/Pipeline.php#L158
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, ArrayIterator<int, null> given.
|
phpstan:
src/Pipeline.php#L169
Parameter #1 $source of method Kiboko\Contract\Pipeline\PipelineRunnerInterface<mixed>::run() expects Iterator<int, non-empty-array|object>, iterable given.
|