refactor: rewrite RandomIterableAggregate
to avoid recursion
#312
Annotations
7 errors and 1 warning
Static Analysis (ubuntu-latest, 8.1):
src/SortIterableAggregate.php#L58
Parameter #1 $value1 (array{int, array{TKey, T}}) of method class@anonymous/src/SortIterableAggregate.php:42::compare() should be contravariant with parameter $value1 (mixed) of method SplHeap<array<int, array<int, T|TKey>|int>>::compare()
|
Static Analysis (ubuntu-latest, 8.1):
src/SortIterableAggregate.php#L58
Parameter #2 $value2 (array{int, array{TKey, T}}) of method class@anonymous/src/SortIterableAggregate.php:42::compare() should be contravariant with parameter $value2 (mixed) of method SplHeap<array<int, array<int, T|TKey>|int>>::compare()
|
Static Analysis (ubuntu-latest, 8.1)
Process completed with exit code 1.
|
Static Analysis (ubuntu-latest, 8.1):
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.
|
Static Analysis (ubuntu-latest, 8.1):
src/SortIterableAggregate.php#L58
Parameter #1 $value1 (array{int, array{TKey, T}}) of method class@anonymous/SortIterableAggregate.php:42::compare() should be contravariant with parameter $value1 (mixed) of method SplHeap<array<int, array<int, T|TKey>|int>>::compare()
|
Static Analysis (ubuntu-latest, 8.1):
src/SortIterableAggregate.php#L58
Parameter #2 $value2 (array{int, array{TKey, T}}) of method class@anonymous/SortIterableAggregate.php:42::compare() should be contravariant with parameter $value2 (mixed) of method SplHeap<array<int, array<int, T|TKey>|int>>::compare()
|
Static Analysis (ubuntu-latest, 8.1)
Process completed with exit code 1.
|
Static Analysis (ubuntu-latest, 8.1)
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/.
|