refactor: rewrite RandomIterableAggregate
to avoid recursion
#303
Annotations
18 errors and 1 warning
Run Grumphp:
src/RandomIterableAggregate.php#L32
Parameter #1 $iterable of class loophp\iterators\UnpackIterableAggregate constructor expects iterable<(int|string), array{mixed, mixed}>, loophp\iterators\SortIterableAggregate<array<int, mixed>, array<int, mixed>> given.
|
Run Grumphp:
src/ShuffleIteratorAggregate.php#L14
Class loophp\iterators\ShuffleIteratorAggregate implements generic interface IteratorAggregate but does not specify its types: TKey, TValue
|
Run Grumphp:
src/ShuffleIteratorAggregate.php#L16
Property loophp\iterators\ShuffleIteratorAggregate::$seed is never read, only written.
|
Run Grumphp:
src/ShuffleIteratorAggregate.php#L28
Method loophp\iterators\ShuffleIteratorAggregate::shuffle() has parameter $numbers with no value type specified in iterable type array.
|
Run Grumphp:
src/ShuffleIteratorAggregate.php#L28
Method loophp\iterators\ShuffleIteratorAggregate::shuffle() return type has no value type specified in iterable type array.
|
Run Grumphp:
src/RandomIterableAggregate.php#L32
src/RandomIterableAggregate.php:32:17: InvalidArgument: Argument 1 of loophp\iterators\UnpackIterableAggregate::__construct expects iterable<array-key, array{0: mixed, 1: mixed}>, but loophp\iterators\SortIterableAggregate<array<int, int|null>, array<int, (array{0: TKey:loophp\iterators\RandomIterableAggregate as mixed, 1: T:loophp\iterators\RandomIterableAggregate as mixed})|null>> provided (see https://psalm.dev/004)
|
Run Grumphp:
src/ShuffleIteratorAggregate.php#L14
src/ShuffleIteratorAggregate.php:14:49: MissingTemplateParam: loophp\iterators\ShuffleIteratorAggregate has missing template params when extending IteratorAggregate, expecting 2 (see https://psalm.dev/182)
|
Run Grumphp
Process completed with exit code 1.
|
Send feedback on Github:
src/IterableIterator.php#L34
Parameter #1 $callable of class loophp\iterators\ClosureIterator constructor expects callable(mixed): iterable, Closure(iterable): Generator<mixed, mixed, mixed, void> given.
|
Send feedback on Github:
src/RandomIterableAggregate.php#L31
Parameter #1 $iterable of class loophp\iterators\UnpackIterableAggregate constructor expects iterable<(int|string), array{TKey, T}>, loophp\iterators\UnpackIterableAggregate<mixed, mixed> given.
|
Send feedback on Github:
src/RandomIterableAggregate.php#L32
Parameter #1 $iterable of class loophp\iterators\UnpackIterableAggregate constructor expects iterable<(int|string), array{mixed, mixed}>, loophp\iterators\SortIterableAggregate<array<int, mixed>, array<int, mixed>> given.
|
Send feedback on Github:
src/ShuffleIteratorAggregate.php#L14
Class loophp\iterators\ShuffleIteratorAggregate implements generic interface IteratorAggregate but does not specify its types: TKey, TValue
|
Send feedback on Github:
src/ShuffleIteratorAggregate.php#L16
Property loophp\iterators\ShuffleIteratorAggregate::$seed is never read, only written.
|
Send feedback on Github:
src/ShuffleIteratorAggregate.php#L28
Method loophp\iterators\ShuffleIteratorAggregate::shuffle() has parameter $numbers with no value type specified in iterable type array.
|
Send feedback on Github:
src/ShuffleIteratorAggregate.php#L28
Method loophp\iterators\ShuffleIteratorAggregate::shuffle() return type has no value type specified in iterable type array.
|
Send feedback on Github:
src/SortIterableAggregate.php#L57
Cannot access offset 0 on mixed.
|
Send feedback on Github:
src/SortIterableAggregate.php#L57
Cannot access offset 0 on mixed.
|
Send feedback on Github:
src/SortIterableAggregate.php#L57
Cannot access offset 0 on mixed.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading