|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<files psalm-version="dev-master@"> |
| 2 | +<files psalm-version="5.5.0@b63061a27f2683ec0f3509012bb22daab3b65b61"> |
3 | 3 | <file src="src/CodeCoverage.php"> |
4 | | - <ArgumentTypeCoercion occurrences="1"> |
| 4 | + <ArgumentTypeCoercion> |
5 | 5 | <code>$unit[0]</code> |
6 | 6 | </ArgumentTypeCoercion> |
7 | | - <DocblockTypeContradiction occurrences="1"> |
| 7 | + <DocblockTypeContradiction> |
8 | 8 | <code>!is_array($linesToBeCovered) && $linesToBeCovered !== false</code> |
9 | 9 | </DocblockTypeContradiction> |
10 | | - <InternalClass occurrences="3"> |
| 10 | + <InternalClass> |
11 | 11 | <code>Test::LARGE</code> |
12 | 12 | <code>Test::MEDIUM</code> |
13 | 13 | <code>Test::SMALL</code> |
14 | 14 | </InternalClass> |
15 | | - <InternalMethod occurrences="5"> |
| 15 | + <InternalMethod> |
16 | 16 | <code>getName</code> |
17 | 17 | <code>getName</code> |
18 | 18 | <code>getSize</code> |
19 | 19 | <code>isLarge</code> |
20 | 20 | <code>isMedium</code> |
21 | 21 | </InternalMethod> |
22 | | - <RedundantCondition occurrences="2"> |
| 22 | + <RedundantCondition> |
23 | 23 | <code>$class->isSubclassOf($parentClass)</code> |
24 | 24 | <code>is_array($linesToBeCovered)</code> |
25 | 25 | </RedundantCondition> |
26 | | - <UnresolvableInclude occurrences="1"> |
| 26 | + <UnresolvableInclude> |
27 | 27 | <code>include_once $uncoveredFile</code> |
28 | 28 | </UnresolvableInclude> |
29 | 29 | </file> |
30 | 30 | <file src="src/Driver/PcovDriver.php"> |
31 | | - <UndefinedConstant occurrences="1"> |
| 31 | + <UndefinedConstant> |
32 | 32 | <code>inclusive</code> |
33 | 33 | </UndefinedConstant> |
34 | | - <UndefinedFunction occurrences="5"> |
| 34 | + <UndefinedFunction> |
35 | 35 | <code>clear()</code> |
36 | 36 | <code>collect(inclusive, $filesToCollectCoverageFor)</code> |
37 | 37 | <code>start()</code> |
|
40 | 40 | </UndefinedFunction> |
41 | 41 | </file> |
42 | 42 | <file src="src/Driver/Xdebug2Driver.php"> |
43 | | - <UndefinedConstant occurrences="3"> |
| 43 | + <UndefinedConstant> |
44 | 44 | <code>XDEBUG_CC_BRANCH_CHECK</code> |
45 | 45 | <code>XDEBUG_CC_DEAD_CODE</code> |
46 | 46 | <code>XDEBUG_CC_UNUSED</code> |
47 | 47 | </UndefinedConstant> |
48 | 48 | </file> |
49 | 49 | <file src="src/Driver/Xdebug3Driver.php"> |
50 | | - <UndefinedConstant occurrences="5"> |
| 50 | + <UndefinedConstant> |
51 | 51 | <code>XDEBUG_CC_BRANCH_CHECK</code> |
52 | 52 | <code>XDEBUG_CC_DEAD_CODE</code> |
53 | 53 | <code>XDEBUG_CC_UNUSED</code> |
|
56 | 56 | </UndefinedConstant> |
57 | 57 | </file> |
58 | 58 | <file src="src/Filter.php"> |
59 | | - <InvalidDocblockParamName occurrences="1"> |
| 59 | + <InvalidDocblockParamName> |
60 | 60 | <code>$files</code> |
61 | 61 | </InvalidDocblockParamName> |
62 | 62 | </file> |
63 | 63 | <file src="src/Node/AbstractNode.php"> |
64 | | - <DocblockTypeContradiction occurrences="5"> |
| 64 | + <DocblockTypeContradiction> |
65 | 65 | <code>$this->id === null</code> |
66 | 66 | <code>$this->parent === null</code> |
67 | 67 | <code>$this->parent === null</code> |
68 | 68 | <code>$this->pathAsArray === null</code> |
69 | 69 | <code>$this->pathAsString === null</code> |
70 | 70 | </DocblockTypeContradiction> |
71 | | - <PossiblyNullPropertyAssignmentValue occurrences="1"> |
| 71 | + <PossiblyNullPropertyAssignmentValue> |
72 | 72 | <code>$parent</code> |
73 | 73 | </PossiblyNullPropertyAssignmentValue> |
74 | | - <PropertyNotSetInConstructor occurrences="3"> |
| 74 | + <PropertyNotSetInConstructor> |
75 | 75 | <code>$id</code> |
76 | 76 | <code>$pathAsArray</code> |
77 | 77 | <code>$pathAsString</code> |
78 | 78 | </PropertyNotSetInConstructor> |
79 | 79 | </file> |
80 | 80 | <file src="src/Node/Builder.php"> |
81 | | - <UnsupportedReferenceUsage occurrences="1"> |
| 81 | + <UnsupportedReferenceUsage> |
82 | 82 | <code>$pointer = &$pointer[$path[$i] . $type]</code> |
83 | 83 | </UnsupportedReferenceUsage> |
84 | 84 | </file> |
85 | 85 | <file src="src/Node/Directory.php"> |
86 | | - <DocblockTypeContradiction occurrences="3"> |
| 86 | + <DocblockTypeContradiction> |
87 | 87 | <code>$this->classes === null</code> |
88 | 88 | <code>$this->functions === null</code> |
89 | 89 | <code>$this->traits === null</code> |
90 | 90 | </DocblockTypeContradiction> |
91 | | - <MissingTemplateParam occurrences="1"> |
| 91 | + <MissingTemplateParam> |
92 | 92 | <code>IteratorAggregate</code> |
93 | 93 | </MissingTemplateParam> |
94 | | - <PropertyNotSetInConstructor occurrences="3"> |
| 94 | + <PropertyNotSetInConstructor> |
95 | 95 | <code>$classes</code> |
96 | 96 | <code>$functions</code> |
97 | 97 | <code>$traits</code> |
98 | 98 | </PropertyNotSetInConstructor> |
99 | | - <PropertyTypeCoercion occurrences="2"> |
| 99 | + <PropertyTypeCoercion> |
100 | 100 | <code>$this->directories</code> |
101 | 101 | <code>$this->files</code> |
102 | 102 | </PropertyTypeCoercion> |
103 | | - <UnsupportedReferenceUsage occurrences="2"> |
| 103 | + <UnsupportedReferenceUsage> |
104 | 104 | <code>$this->directories[] = &$this->children[count($this->children) - 1]</code> |
105 | 105 | <code>$this->files[] = &$this->children[count($this->children) - 1]</code> |
106 | 106 | </UnsupportedReferenceUsage> |
107 | 107 | </file> |
108 | 108 | <file src="src/Node/File.php"> |
109 | | - <DocblockTypeContradiction occurrences="5"> |
| 109 | + <DocblockTypeContradiction> |
110 | 110 | <code>$this->numClasses === null</code> |
111 | 111 | <code>$this->numMethods === null</code> |
112 | 112 | <code>$this->numTestedFunctions === null</code> |
113 | 113 | <code>$this->numTestedMethods === null</code> |
114 | 114 | <code>$this->numTraits === null</code> |
115 | 115 | </DocblockTypeContradiction> |
116 | | - <InvalidPropertyAssignmentValue occurrences="3"> |
| 116 | + <InvalidPropertyAssignmentValue> |
117 | 117 | <code>$this->codeUnitsByLine</code> |
118 | 118 | <code>$this->codeUnitsByLine</code> |
119 | 119 | <code>$this->codeUnitsByLine</code> |
120 | 120 | </InvalidPropertyAssignmentValue> |
121 | | - <PropertyNotSetInConstructor occurrences="5"> |
| 121 | + <PropertyNotSetInConstructor> |
122 | 122 | <code>$numClasses</code> |
123 | 123 | <code>$numMethods</code> |
124 | 124 | <code>$numTestedFunctions</code> |
|
127 | 127 | </PropertyNotSetInConstructor> |
128 | 128 | </file> |
129 | 129 | <file src="src/Node/Iterator.php"> |
130 | | - <ArgumentTypeCoercion occurrences="1"> |
| 130 | + <ArgumentTypeCoercion> |
131 | 131 | <code>$this->nodes[$this->position]</code> |
132 | 132 | </ArgumentTypeCoercion> |
133 | | - <MissingTemplateParam occurrences="1"> |
| 133 | + <MissingTemplateParam> |
134 | 134 | <code>RecursiveIterator</code> |
135 | 135 | </MissingTemplateParam> |
136 | | - <PropertyNotSetInConstructor occurrences="1"> |
| 136 | + <PropertyNotSetInConstructor> |
137 | 137 | <code>$position</code> |
138 | 138 | </PropertyNotSetInConstructor> |
139 | 139 | </file> |
140 | 140 | <file src="src/ProcessedCodeCoverageData.php"> |
141 | | - <PossiblyNullArgument occurrences="1"> |
| 141 | + <PossiblyNullArgument> |
142 | 142 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
143 | 143 | </PossiblyNullArgument> |
144 | | - <PossiblyNullArrayAccess occurrences="3"> |
| 144 | + <PossiblyNullArrayAccess> |
145 | 145 | <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
146 | 146 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]</code> |
147 | 147 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
148 | 148 | </PossiblyNullArrayAccess> |
149 | | - <PossiblyNullArrayAssignment occurrences="1"> |
| 149 | + <PossiblyNullArrayAssignment> |
150 | 150 | <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
151 | 151 | </PossiblyNullArrayAssignment> |
152 | 152 | </file> |
153 | 153 | <file src="src/Report/Html/Renderer.php"> |
154 | | - <PossiblyUndefinedArrayOffset occurrences="4"> |
| 154 | + <PossiblyUndefinedArrayOffset> |
155 | 155 | <code>$data['branchesExecutedPercentAsString']</code> |
156 | 156 | <code>$data['linesExecutedPercentAsString']</code> |
157 | 157 | <code>$data['pathsExecutedPercentAsString']</code> |
158 | 158 | <code>$data['testedMethodsPercentAsString']</code> |
159 | 159 | </PossiblyUndefinedArrayOffset> |
160 | 160 | </file> |
161 | 161 | <file src="src/Report/Html/Renderer/File.php"> |
162 | | - <InternalClass occurrences="7"> |
| 162 | + <InternalClass> |
163 | 163 | <code>BaseTestRunner::STATUS_ERROR</code> |
164 | 164 | <code>BaseTestRunner::STATUS_FAILURE</code> |
165 | 165 | <code>BaseTestRunner::STATUS_INCOMPLETE</code> |
|
168 | 168 | <code>BaseTestRunner::STATUS_SKIPPED</code> |
169 | 169 | <code>BaseTestRunner::STATUS_WARNING</code> |
170 | 170 | </InternalClass> |
171 | | - <InvalidArrayOffset occurrences="1"> |
| 171 | + <InvalidArrayOffset> |
172 | 172 | <code>$tokens[$j - 1]</code> |
173 | 173 | </InvalidArrayOffset> |
174 | 174 | </file> |
175 | 175 | <file src="src/Report/Xml/BuildInformation.php"> |
176 | | - <PossiblyNullReference occurrences="1"> |
| 176 | + <PossiblyNullReference> |
177 | 177 | <code>createElementNS</code> |
178 | 178 | </PossiblyNullReference> |
179 | 179 | </file> |
180 | 180 | <file src="src/Report/Xml/Coverage.php"> |
181 | | - <PossiblyNullReference occurrences="2"> |
| 181 | + <PossiblyNullReference> |
182 | 182 | <code>createDocumentFragment</code> |
183 | 183 | <code>replaceChild</code> |
184 | 184 | </PossiblyNullReference> |
185 | 185 | </file> |
186 | 186 | <file src="src/Report/Xml/Facade.php"> |
187 | | - <PropertyNotSetInConstructor occurrences="2"> |
| 187 | + <PropertyNotSetInConstructor> |
188 | 188 | <code>$project</code> |
189 | 189 | <code>$target</code> |
190 | 190 | </PropertyNotSetInConstructor> |
191 | 191 | </file> |
192 | 192 | <file src="src/Report/Xml/File.php"> |
193 | | - <ArgumentTypeCoercion occurrences="1"> |
| 193 | + <ArgumentTypeCoercion> |
194 | 194 | <code>$totalsContainer</code> |
195 | 195 | </ArgumentTypeCoercion> |
196 | | - <PossiblyNullPropertyAssignmentValue occurrences="1"> |
| 196 | + <PossiblyNullPropertyAssignmentValue> |
197 | 197 | <code>$context->ownerDocument</code> |
198 | 198 | </PossiblyNullPropertyAssignmentValue> |
199 | 199 | </file> |
200 | 200 | <file src="src/Report/Xml/Node.php"> |
201 | | - <ArgumentTypeCoercion occurrences="1"> |
| 201 | + <ArgumentTypeCoercion> |
202 | 202 | <code>$totalsContainer</code> |
203 | 203 | </ArgumentTypeCoercion> |
204 | | - <PossiblyNullPropertyAssignmentValue occurrences="1"> |
| 204 | + <PossiblyNullPropertyAssignmentValue> |
205 | 205 | <code>$context->ownerDocument</code> |
206 | 206 | </PossiblyNullPropertyAssignmentValue> |
207 | | - <PropertyNotSetInConstructor occurrences="2"> |
| 207 | + <PropertyNotSetInConstructor> |
208 | 208 | <code>$contextNode</code> |
209 | 209 | <code>$dom</code> |
210 | 210 | </PropertyNotSetInConstructor> |
211 | 211 | </file> |
212 | 212 | <file src="src/Report/Xml/Report.php"> |
213 | | - <MissingParamType occurrences="4"> |
| 213 | + <MissingParamType> |
214 | 214 | <code>$name</code> |
215 | 215 | <code>$name</code> |
216 | 216 | <code>$name</code> |
217 | 217 | <code>$name</code> |
218 | 218 | </MissingParamType> |
219 | 219 | </file> |
220 | 220 | <file src="src/Report/Xml/Source.php"> |
221 | | - <PossiblyNullArgument occurrences="1"> |
| 221 | + <PossiblyNullArgument> |
222 | 222 | <code>$context->namespaceURI</code> |
223 | 223 | </PossiblyNullArgument> |
224 | | - <PossiblyNullReference occurrences="2"> |
| 224 | + <PossiblyNullReference> |
225 | 225 | <code>importNode</code> |
226 | 226 | <code>replaceChild</code> |
227 | 227 | </PossiblyNullReference> |
228 | 228 | </file> |
229 | 229 | <file src="src/Report/Xml/Tests.php"> |
230 | | - <MissingPropertyType occurrences="1"> |
| 230 | + <MissingPropertyType> |
231 | 231 | <code>$codeMap</code> |
232 | 232 | </MissingPropertyType> |
233 | | - <PossiblyNullReference occurrences="1"> |
| 233 | + <PossiblyNullReference> |
234 | 234 | <code>createElementNS</code> |
235 | 235 | </PossiblyNullReference> |
236 | 236 | </file> |
237 | 237 | <file src="src/Report/Xml/Totals.php"> |
238 | | - <PossiblyNullReference occurrences="1"> |
| 238 | + <PossiblyNullReference> |
239 | 239 | <code>createElementNS</code> |
240 | 240 | </PossiblyNullReference> |
241 | 241 | </file> |
242 | 242 | <file src="src/Report/Xml/Unit.php"> |
243 | | - <PossiblyNullReference occurrences="2"> |
| 243 | + <PossiblyNullReference> |
244 | 244 | <code>createElementNS</code> |
245 | 245 | <code>createElementNS</code> |
246 | 246 | </PossiblyNullReference> |
247 | 247 | </file> |
248 | 248 | <file src="src/StaticAnalysis/CachingFileAnalyser.php"> |
249 | | - <NullableReturnStatement occurrences="6"> |
| 249 | + <NullableReturnStatement> |
250 | 250 | <code>$this->cache[$filename]['classesIn']</code> |
251 | 251 | <code>$this->cache[$filename]['executableLinesIn']</code> |
252 | 252 | <code>$this->cache[$filename]['functionsIn']</code> |
253 | 253 | <code>$this->cache[$filename]['ignoredLinesFor']</code> |
254 | 254 | <code>$this->cache[$filename]['linesOfCodeFor']</code> |
255 | 255 | <code>$this->cache[$filename]['traitsIn']</code> |
256 | 256 | </NullableReturnStatement> |
257 | | - <PossiblyNullArrayAccess occurrences="6"> |
| 257 | + <PossiblyNullArrayAccess> |
258 | 258 | <code>$this->cache[$filename]['classesIn']</code> |
259 | 259 | <code>$this->cache[$filename]['executableLinesIn']</code> |
260 | 260 | <code>$this->cache[$filename]['functionsIn']</code> |
261 | 261 | <code>$this->cache[$filename]['ignoredLinesFor']</code> |
262 | 262 | <code>$this->cache[$filename]['linesOfCodeFor']</code> |
263 | 263 | <code>$this->cache[$filename]['traitsIn']</code> |
264 | 264 | </PossiblyNullArrayAccess> |
265 | | - <PossiblyUndefinedArrayOffset occurrences="6"> |
| 265 | + <PossiblyUndefinedArrayOffset> |
266 | 266 | <code>$this->cache[$filename]</code> |
267 | 267 | <code>$this->cache[$filename]</code> |
268 | 268 | <code>$this->cache[$filename]</code> |
|
272 | 272 | </PossiblyUndefinedArrayOffset> |
273 | 273 | </file> |
274 | 274 | <file src="src/StaticAnalysis/CodeUnitFindingVisitor.php"> |
275 | | - <PossiblyInvalidOperand occurrences="1"> |
| 275 | + <PossiblyInvalidOperand> |
276 | 276 | <code>$parameter->var->name</code> |
277 | 277 | </PossiblyInvalidOperand> |
278 | | - <PossiblyNullReference occurrences="4"> |
| 278 | + <PossiblyNullReference> |
279 | 279 | <code>toString</code> |
280 | 280 | <code>toString</code> |
281 | 281 | <code>toString</code> |
282 | 282 | <code>toString</code> |
283 | 283 | </PossiblyNullReference> |
284 | | - <PossiblyUndefinedMethod occurrences="1"> |
| 284 | + <PossiblyUndefinedMethod> |
285 | 285 | <code>toString</code> |
286 | 286 | </PossiblyUndefinedMethod> |
287 | | - <RedundantConditionGivenDocblockType occurrences="9"> |
| 287 | + <RedundantConditionGivenDocblockType> |
288 | 288 | <code>$node instanceof Function_</code> |
289 | 289 | <code>$node instanceof Function_</code> |
290 | 290 | <code>$type instanceof ComplexType</code> |
|
297 | 297 | </RedundantConditionGivenDocblockType> |
298 | 298 | </file> |
299 | 299 | <file src="src/Version.php"> |
300 | | - <DocblockTypeContradiction occurrences="1"> |
| 300 | + <DocblockTypeContradiction> |
301 | 301 | <code>self::$version === null</code> |
302 | 302 | </DocblockTypeContradiction> |
303 | 303 | </file> |
|
0 commit comments