Fixing PHPStan level 9 issues #73
Annotations
10 errors
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#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.
|
phpstan:
src/Transformer/FilterTransformer.php#L45
Generator expects value type Kiboko\Component\Bucket\AcceptanceResultBucket<Type>|Kiboko\Component\Bucket\EmptyResultBucket, Kiboko\Component\Bucket\AcceptanceResultBucket<Type of mixed> given.
|
phpstan
Process completed with exit code 1.
|