Skip to content

Fixing PHPStan level 4 issues #77

Fixing PHPStan level 4 issues

Fixing PHPStan level 4 issues #77

Triggered via push November 14, 2023 13:33
Status Failure
Total duration 31s
Artifacts

phpstan-7.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Loader/LogLoader.php#L25
Method Kiboko\Component\Pipeline\Loader\LogLoader::load() return type with generic class Kiboko\Component\Bucket\EmptyResultBucket does not specify its types: Type
phpstan: src/Loader/LogLoader.php#L27
Generator expects key type int<0, max>, int given.
phpstan: src/Loader/LogLoader.php#L31
Generator expects key type int<0, max>, int given.
phpstan: src/Loader/LogLoader.php#L36
Generator expects key type int<0, max>, int given.
phpstan: src/Loader/StreamLoader.php#L32
Method Kiboko\Component\Pipeline\Loader\StreamLoader::load() return type with generic class Kiboko\Component\Bucket\EmptyResultBucket does not specify its types: Type
phpstan: src/Loader/StreamLoader.php#L34
Generator expects key type int<0, max>, int given.
phpstan: src/Loader/StreamLoader.php#L38
Generator expects key type int<0, max>, int given.
phpstan: src/Loader/StreamLoader.php#L43
Generator expects key type int<0, max>, int given.
phpstan: src/Pipeline.php#L38
Parameter #1 $iterator of class NoRewindIterator constructor expects AppendIterator<int, non-empty-array|object, Iterator<int, non-empty-array|object>>, AppendIterator<int<0, max>, non-empty-array|object, Iterator<int<0, max>, non-empty-array|object>> given.
phpstan: src/Pipeline.php#L38
Property Kiboko\Component\Pipeline\Pipeline::$subject (Iterator<int<0, max>, non-empty-array|object>) does not accept NoRewindIterator<int, non-empty-array|object, AppendIterator<int, non-empty-array|object, Iterator<int, non-empty-array|object>>>.