chore: more specific return type for chunk() method #1960
Annotations
10 errors and 1 warning
Send PSALM data:
src/Collection.php#L117
src/Collection.php:117:25: MixedArgument: Argument 1 of loophp\collection\Collection::__construct cannot be mixed, expecting callable(mixed...):iterable<mixed, mixed> (see https://psalm.dev/030)
|
Send PSALM data:
src/Collection.php#L149
src/Collection.php:149:17: InvalidArgument: Argument 1 expects callable(mixed, mixed, iterable<mixed, mixed>):bool, but impure-Closure():void provided (see https://psalm.dev/004)
|
Send PSALM data:
src/Collection.php#L270
src/Collection.php:270:148: InvalidArgument: Argument 1 expects array<array-key, callable(mixed...):bool>, but array<array-key, callable(T:loophp\collection\Collection as mixed, TKey:loophp\collection\Collection as mixed, iterable<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>):bool> provided (see https://psalm.dev/004)
|
Send PSALM data:
src/Collection.php#L598
src/Collection.php:598:56: InvalidReturnType: The declared return type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>>' for loophp\collection\Collection::partition is incorrect, got 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<int, iterable<mixed, mixed>>>&loophp\collection\Contract\Collection' (see https://psalm.dev/011)
|
Send PSALM data:
src/Collection.php#L600
src/Collection.php:600:16: InvalidReturnStatement: The inferred type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<int, iterable<mixed, mixed>>>&loophp\collection\Contract\Collection' does not match the declared return type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>>' for loophp\collection\Collection::partition (see https://psalm.dev/128)
|
Send PSALM data:
src/Collection.php#L633
src/Collection.php:633:25: MixedArgument: Argument 1 of loophp\collection\Collection::__construct cannot be mixed, expecting callable(mixed...):iterable<mixed, mixed> (see https://psalm.dev/030)
|
Send PSALM data:
src/Collection.php#L720
src/Collection.php:720:56: InvalidArgument: Argument 1 expects callable(mixed, mixed, mixed, iterable<mixed, mixed>):mixed, but callable((T:loophp\collection\Collection as mixed)|(V:fn-loophp\collection\contract\operation\scanright1able::scanright1 as mixed), T:loophp\collection\Collection as mixed, TKey:loophp\collection\Collection as mixed, Iterator<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>):((T:loophp\collection\Collection as mixed)|(V:fn-loophp\collection\contract\operation\scanright1able::scanright1 as mixed)) provided (see https://psalm.dev/004)
|
Send PSALM data:
src/Collection.php#L743
src/Collection.php:743:51: InvalidReturnType: The declared return type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>>' for loophp\collection\Collection::span is incorrect, got 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<int, iterable<mixed, mixed>>>&loophp\collection\Contract\Collection' (see https://psalm.dev/011)
|
Send PSALM data:
src/Collection.php#L745
src/Collection.php:745:16: InvalidReturnStatement: The inferred type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<int, iterable<mixed, mixed>>>&loophp\collection\Contract\Collection' does not match the declared return type 'loophp\collection\Contract\Collection<int, loophp\collection\Collection<TKey:loophp\collection\Collection as mixed, T:loophp\collection\Collection as mixed>>' for loophp\collection\Collection::span (see https://psalm.dev/128)
|
Send PSALM data:
src/Collection.php#L813
src/Collection.php:813:83: InvalidReturnType: The declared return type 'loophp\collection\Contract\Collection<int, iterable<array-key, T:fn-loophp\collection\contract\operation\unfoldable::unfold as mixed>>' for loophp\collection\Collection::unfold is incorrect, got 'loophp\collection\Collection<int, iterable<array-key, never>>' (see https://psalm.dev/011)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading