Skip to content

feat: add plus operation #1831

feat: add plus operation

feat: add plus operation #1831

Triggered via pull request November 13, 2023 20:30
Status Failure
Total duration 58s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Static Analysis
Fit to window
Zoom out
Zoom in

Annotations

12 errors
ParamNameMismatch: src/Collection.php#L618
src/Collection.php:618:35: ParamNameMismatch: Argument 1 of loophp\collection\Collection::plus has wrong name $iterable, expecting $items as defined by loophp\collection\Contract\Operation\Plusable::plus (see https://psalm.dev/230)
Static Analysis (ubuntu-latest, 8.1)
Process completed with exit code 1.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L102
Method loophp\collection\Collection::coalesce() should return loophp\collection\Contract\Collection<TKey, T> but returns loophp\collection\Collection<mixed, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L107
Method loophp\collection\Collection::collapse() should return loophp\collection\Contract\Collection<TKey, T> but returns loophp\collection\Collection<mixed, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L164
Method loophp\collection\Collection::cycle() should return loophp\collection\Contract\Collection<TKey, T> but returns loophp\collection\Collection<mixed, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L303
Method loophp\collection\Collection::flip() should return loophp\collection\Contract\Collection<T, TKey> but returns loophp\collection\Collection<mixed, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L313
Parameter #1 $ of closure expects callable(mixed, mixed, mixed, iterable): mixed, callable(T|V, T, TKey, iterable<TKey, T>): V given.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L323
Parameter #1 $ of closure expects callable(mixed, mixed, mixed, iterable): mixed, callable(T|V, T, TKey, iterable<TKey, T>): V given.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L333
Method loophp\collection\Collection::frequency() should return loophp\collection\Contract\Collection<int, T> but returns loophp\collection\Collection<int, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L459
Method loophp\collection\Collection::init() should return loophp\collection\Contract\Collection<TKey, T> but returns loophp\collection\Collection<mixed, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L507
Method loophp\collection\Collection::keys() should return loophp\collection\Contract\Collection<int, TKey> but returns loophp\collection\Collection<int, mixed>.
Static Analysis (ubuntu-latest, 8.1): src/Collection.php#L562
Method loophp\collection\Collection::normalize() should return loophp\collection\Contract\Collection<int, T> but returns loophp\collection\Collection<int, mixed>.