Compliance #20084
compliance.yml
on: schedule
automation
/
Generate job matrix
6s
Matrix: automation / qa
Annotations
10 warnings
LessSpecificReturnType:
src/Collection.php#L49
src/Collection.php:49:56: LessSpecificReturnType: The inferred return type 'Generator<int, TValue:Ghostwriter\Collection\Collection as mixed, mixed, void>' for /home/runner/work/collection/collection/src/collection.php:49:1048:-:closure is more specific than the declared return type 'Generator' (see https://psalm.dev/088)
|
LessSpecificReturnType:
src/Collection.php#L118
src/Collection.php:118:56: LessSpecificReturnType: The inferred return type 'Generator<int, TValue:Ghostwriter\Collection\Collection as mixed, mixed, void>' for /home/runner/work/collection/collection/src/collection.php:118:2648:-:closure is more specific than the declared return type 'Generator' (see https://psalm.dev/088)
|
LessSpecificReturnType:
src/Collection.php#L187
src/Collection.php:187:56: LessSpecificReturnType: The inferred return type 'Generator<int, TMap:fn-ghostwriter\collection\collection::map as mixed, mixed, void>' for /home/runner/work/collection/collection/src/collection.php:187:4141:-:closure is more specific than the declared return type 'Generator' (see https://psalm.dev/088)
|
DocblockTypeContradiction:
src/Collection.php#L225
src/Collection.php:225:13: DocblockTypeContradiction: Docblock-defined type int<0, max> for $offset is never <= 0 (see https://psalm.dev/155)
|
DocblockTypeContradiction:
src/Collection.php#L229
src/Collection.php:229:13: DocblockTypeContradiction: Docblock-defined type int<0, max> for $length is never <= 0 (see https://psalm.dev/155)
|
LessSpecificReturnType:
src/Collection.php#L234
src/Collection.php:234:49: LessSpecificReturnType: The inferred return type 'Generator<int, TValue:Ghostwriter\Collection\Collection as mixed, mixed, void>' for /home/runner/work/collection/collection/src/collection.php:234:5361:-:closure is more specific than the declared return type 'Generator' (see https://psalm.dev/088)
|
InvalidArgument:
tests/Unit/CollectionTest.php#L31
tests/Unit/CollectionTest.php:31:62: InvalidArgument: Argument 1 of Ghostwriter\Collection\Collection::append expects iterable<mixed, never>, but list{4} provided (see https://psalm.dev/004)
|
ReservedWord:
tests/Unit/CollectionTest.php#L40
tests/Unit/CollectionTest.php:40:59: ReservedWord: Parameter cannot be never (see https://psalm.dev/095)
|
ReservedWord:
tests/Unit/CollectionTest.php#L42
tests/Unit/CollectionTest.php:42:59: ReservedWord: Parameter cannot be never (see https://psalm.dev/095)
|
ReservedWord:
tests/Unit/CollectionTest.php#L44
tests/Unit/CollectionTest.php:44:60: ReservedWord: Parameter cannot be never (see https://psalm.dev/095)
|