Skip to content

Fixing PHPStan level 9 issues #42

Fixing PHPStan level 9 issues

Fixing PHPStan level 9 issues #42

Triggered via push November 13, 2023 17:32
Status Failure
Total duration 27s
Artifacts

phpstan-6.yaml

on: push
Fit to window
Zoom out
Zoom in

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#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#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#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#L170
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/PipelineRunner.php#L21
Class Kiboko\Component\Pipeline\PipelineRunner implements generic interface Kiboko\Contract\Pipeline\PipelineRunnerInterface but does not specify its types: Type
phpstan: src/PipelineRunner.php#L50
Call to an undefined method Kiboko\Contract\Bucket\RejectionResultBucketInterface::reasons().
phpstan: src/Transformer/BatchingTransformer.php#L47
Generator expects value type Kiboko\Component\Bucket\AcceptanceResultBucket<non-empty-array<int, Type>>|Kiboko\Component\Bucket\EmptyResultBucket, Kiboko\Component\Bucket\AcceptanceResultBucket<non-empty-array<int, Type of mixed>> given.