-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
psalm-baseline.xml
195 lines (195 loc) · 6.3 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.1.0@4defa177c89397c5e14737a80fe4896584130674">
<file src="src/AbstractAdapter.php">
<DocblockTypeContradiction occurrences="1">
<code>! is_array($options) && ! $options instanceof Traversable</code>
</DocblockTypeContradiction>
<MixedAssignment occurrences="1">
<code>$value</code>
</MixedAssignment>
</file>
<file src="src/AbstractWord.php">
<MixedArgument occurrences="1">
<code>$value['input']</code>
</MixedArgument>
<MixedAssignment occurrences="3">
<code>$this->id</code>
<code>$this->word</code>
<code>$value</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="2">
<code>$this->word</code>
<code>$this->word</code>
</MixedReturnStatement>
<PropertyTypeCoercion occurrences="1">
<code>$sessionClass</code>
</PropertyTypeCoercion>
<RedundantCastGivenDocblockType occurrences="1">
<code>(int) $ttl</code>
</RedundantCastGivenDocblockType>
<UnsafeInstantiation occurrences="1">
<code>new $this->sessionClass('Laminas_Form_Captcha_' . $id)</code>
</UnsafeInstantiation>
</file>
<file src="src/Dumb.php">
<PropertyNotSetInConstructor occurrences="1">
<code>Dumb</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Factory.php">
<DocblockTypeContradiction occurrences="1">
<code>is_array($options)</code>
</DocblockTypeContradiction>
<MixedArgument occurrences="4">
<code>$class</code>
<code>$class</code>
<code>$class</code>
<code>$class</code>
</MixedArgument>
<MixedAssignment occurrences="2">
<code>$class</code>
<code>$options</code>
</MixedAssignment>
<MixedMethodCall occurrences="1">
<code>new $class($options)</code>
</MixedMethodCall>
</file>
<file src="src/Figlet.php">
<PropertyNotSetInConstructor occurrences="1">
<code>Figlet</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Image.php">
<MixedAssignment occurrences="2">
<code>$x</code>
<code>$y</code>
</MixedAssignment>
<MixedOperand occurrences="6">
<code>$h - ($textbox[7] - $textbox[1])</code>
<code>$textbox[2]</code>
<code>$textbox[2] - $textbox[0]</code>
<code>$textbox[7]</code>
<code>$textbox[7] - $textbox[1]</code>
<code>$w - ($textbox[2] - $textbox[0])</code>
</MixedOperand>
<PropertyNotSetInConstructor occurrences="3">
<code>$font</code>
<code>$startImage</code>
<code>Image</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/ReCaptcha.php">
<MixedArgument occurrences="7">
<code>$context</code>
<code>$context[$value]</code>
<code>$options['pubKey']</code>
<code>$options['site_key']</code>
<code>$value</code>
<code>$value</code>
<code>$value</code>
</MixedArgument>
<PossiblyNullArgument occurrences="1">
<code>$context</code>
</PossiblyNullArgument>
<PropertyNotSetInConstructor occurrences="1">
<code>ReCaptcha</code>
</PropertyNotSetInConstructor>
</file>
<file src="test/CommonWordTest.php">
<InvalidStringClass occurrences="2">
<code>new $this->wordClass()</code>
<code>new $this->wordClass()</code>
</InvalidStringClass>
<MixedMethodCall occurrences="4">
<code>getMessages</code>
<code>getSession</code>
<code>isValid</code>
<code>setSessionClass</code>
</MixedMethodCall>
</file>
<file src="test/FactoryTest.php">
<DocblockTypeContradiction occurrences="1">
<code>null === $this->tmpDir</code>
</DocblockTypeContradiction>
<MissingConstructor occurrences="2">
<code>$testDir</code>
<code>$tmpDir</code>
</MissingConstructor>
<NoInterfaceProperties occurrences="1">
<code>$captcha->options</code>
</NoInterfaceProperties>
<RedundantConditionGivenDocblockType occurrences="1">
<code>null !== $this->testDir</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="test/FigletTest.php">
<MixedMethodCall occurrences="2">
<code>setTimeout</code>
<code>setTimeout</code>
</MixedMethodCall>
<RedundantConditionGivenDocblockType occurrences="4">
<code>assertIsInt</code>
<code>assertIsString</code>
<code>assertIsString</code>
<code>assertIsString</code>
</RedundantConditionGivenDocblockType>
<UndefinedMethod occurrences="3">
<code>setWordLen</code>
<code>setWordLen</code>
<code>setWordLen</code>
</UndefinedMethod>
<UndefinedThisPropertyAssignment occurrences="3">
<code>$this->id</code>
<code>$this->word</code>
<code>$this->word</code>
</UndefinedThisPropertyAssignment>
</file>
<file src="test/ImageTest.php">
<DocblockTypeContradiction occurrences="1">
<code>null === $this->tmpDir</code>
</DocblockTypeContradiction>
<RedundantConditionGivenDocblockType occurrences="3">
<code>assertIsString</code>
<code>assertIsString</code>
<code>assertIsString</code>
</RedundantConditionGivenDocblockType>
<UndefinedDocblockClass occurrences="1">
<code>RuntimeException</code>
</UndefinedDocblockClass>
<UndefinedThisPropertyAssignment occurrences="3">
<code>$this->id</code>
<code>$this->word</code>
<code>$this->word</code>
</UndefinedThisPropertyAssignment>
</file>
<file src="test/ReCaptchaTest.php">
<DeprecatedMethod occurrences="4">
<code>getPrivKey</code>
<code>getPubKey</code>
<code>setPrivKey</code>
<code>setPubKey</code>
</DeprecatedMethod>
</file>
<file src="test/TestAsset/SessionContainer.php">
<MissingParamType occurrences="6">
<code>$args</code>
<code>$method</code>
<code>$name</code>
<code>$name</code>
<code>$name</code>
<code>$value</code>
</MissingParamType>
<MissingPropertyType occurrences="1">
<code>$word</code>
</MissingPropertyType>
<MixedArgument occurrences="1">
<code>$args</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>static::$word</code>
</MixedAssignment>
</file>
</files>