-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpsalm-baseline.xml
137 lines (137 loc) · 5.12 KB
/
psalm-baseline.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.22.1@e9dad66e11274315dac27e08349c628c7d6a1a43">
<file src="src/Collection.php">
<InvalidArgument>
<code><![CDATA[$callback]]></code>
<code><![CDATA[$callbacks]]></code>
<code><![CDATA[$parameters]]></code>
<code><![CDATA[static function () use (&$counter): void {
++$counter;
}]]></code>
</InvalidArgument>
<InvalidReturnStatement>
<code><![CDATA[(new self((new Operation\Partition())()(...$callbacks), [$this]))
->map(
/**
* @param iterable<TKey, T> $iterable
*
* @return Collection<TKey, T>
*/
static fn (iterable $iterable): Collection => Collection::fromIterable($iterable)
)]]></code>
<code><![CDATA[(new self((new Operation\Span())()(...$callbacks), [$this]))
->map(
/**
* @param iterable<TKey, T> $iterable
*
* @return Collection<TKey, T>
*/
static fn (iterable $iterable): Collection => Collection::fromIterable($iterable)
)]]></code>
<code><![CDATA[new self((new Operation\Unfold())()($parameters)($callback))]]></code>
<code><![CDATA[new self((new Operation\Wrap())(), [$this])]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[CollectionInterface]]></code>
<code><![CDATA[CollectionInterface]]></code>
<code><![CDATA[CollectionInterface]]></code>
<code><![CDATA[CollectionInterface]]></code>
</InvalidReturnType>
<MixedArgument>
<code><![CDATA[(new Operation\Combinate())()($length)]]></code>
<code><![CDATA[(new Operation\Product())()(...$iterables)]]></code>
</MixedArgument>
</file>
<file src="src/Operation/DropWhile.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Every.php">
<InvalidArgument>
<code><![CDATA[$predicates]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Filter.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/MatchOne.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
<code><![CDATA[$matchers]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Product.php">
<InvalidArgument>
<code><![CDATA[[[]]]]></code>
<code><![CDATA[static fn (iterable $a, iterable $x): Generator => $f($x)($a)]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Reject.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Since.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Split.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/TakeWhile.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Until.php">
<InvalidArgument>
<code><![CDATA[$callbacks]]></code>
</InvalidArgument>
</file>
<file src="src/Operation/Zip.php">
<MoreSpecificReturnType>
<code><![CDATA[Generator<list<TKey|UKey|null>, list<T|U|null>>]]></code>
</MoreSpecificReturnType>
</file>
<file src="tests/static-analysis/fromCallable.php">
<PossiblyInvalidArgument>
<code><![CDATA[$invokableClassList]]></code>
<code><![CDATA[$invokableClassMap]]></code>
<code><![CDATA[$invokableClassMixed]]></code>
<code><![CDATA[[$classWithMethod, 'getKeyValues']]]></code>
<code><![CDATA[[$classWithMethod, 'getMixed']]]></code>
<code><![CDATA[[$classWithMethod, 'getValues']]]></code>
<code><![CDATA[[$classWithStaticMethod, 'getKeyValues']]]></code>
<code><![CDATA[[$classWithStaticMethod, 'getMixed']]]></code>
<code><![CDATA[[$classWithStaticMethod, 'getValues']]]></code>
</PossiblyInvalidArgument>
</file>
<file src="tests/static-analysis/partition.php">
<PossiblyUndefinedArrayOffset>
<code><![CDATA[$left]]></code>
<code><![CDATA[$left]]></code>
</PossiblyUndefinedArrayOffset>
</file>
<file src="tests/static-analysis/scanLeft1.php">
<InvalidArgument>
<code><![CDATA[Collection::fromIterable(array_combine(range('a', 'e'), range('a', 'e')))->scanLeft1(static fn (int|string $carry, string $value): int => ord($value))]]></code>
</InvalidArgument>
</file>
<file src="tests/static-analysis/scanRight1.php">
<InvalidArgument>
<code><![CDATA[Collection::fromIterable(array_combine(range('a', 'e'), range('a', 'e')))->scanRight1(static fn (int|string $carry, string $value): int => ord($value))]]></code>
</InvalidArgument>
</file>
<file src="tests/static-analysis/span.php">
<PossiblyUndefinedArrayOffset>
<code><![CDATA[$left]]></code>
<code><![CDATA[$left]]></code>
</PossiblyUndefinedArrayOffset>
</file>
</files>