add Sequence::chunk() #247
Annotations
6 errors and 1 warning
src/Sequence.php#L749
src/Sequence.php:749:16: InvalidReturnType: The declared return type 'Innmind\Immutable\Sequence<Innmind\Immutable\Sequence<T:Innmind\Immutable\Sequence as mixed>>' for Innmind\Immutable\Sequence::chunk is incorrect, got 'Innmind\Immutable\Sequence<(Innmind\Immutable\Sequence<V:fn-innmind\immutable\sequence::of as mixed>)|Innmind\Immutable\Sequence<mixed>|mixed>' (see https://psalm.dev/011)
|
src/Sequence.php#L753
src/Sequence.php:753:16: InvalidReturnStatement: The inferred type 'Innmind\Immutable\Sequence<(Innmind\Immutable\Sequence<V:fn-innmind\immutable\sequence::of as mixed>)|Innmind\Immutable\Sequence<mixed>|mixed>' does not match the declared return type 'Innmind\Immutable\Sequence<Innmind\Immutable\Sequence<T:Innmind\Immutable\Sequence as mixed>>' for Innmind\Immutable\Sequence::chunk (see https://psalm.dev/128)
|
src/Sequence.php#L754
src/Sequence.php:754:19: InvalidArgument: Argument 1 of Innmind\Immutable\Sequence::map expects callable(T:Innmind\Immutable\Sequence as mixed):Innmind\Immutable\Sequence<V:fn-innmind\immutable\sequence::of as mixed>, but pure-Closure(V:fn-innmind\immutable\sequence::of as mixed...):Innmind\Immutable\Sequence<V:fn-innmind\immutable\sequence::of as mixed> provided (see https://psalm.dev/004)
|
src/Sequence.php#L755
src/Sequence.php:755:57: MixedMethodCall: Cannot determine the type of $a when calling method size (see https://psalm.dev/015)
|
src/Sequence.php#L757
src/Sequence.php:757:41: MixedMethodCall: Cannot determine the type of $a when calling method append (see https://psalm.dev/015)
|
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading