chore(deps): update dependency drupol/php-conventions to v6 (#346) #1952
Annotations
10 errors and 1 warning
MixedArgument:
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)
|
InvalidArgument:
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)
|
InvalidArgument:
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)
|
InvalidReturnType:
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)
|
InvalidReturnStatement:
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)
|
MixedArgument:
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)
|
InvalidArgument:
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)
|
InvalidReturnType:
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)
|
InvalidReturnStatement:
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)
|
InvalidReturnType:
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)
|
Static Analysis (ubuntu-latest, 8.1)
The following actions use a deprecated Node.js version 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/
|