|
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>$tmp[0]</code> |
6 | 6 | </ArgumentTypeCoercion> |
7 | | - <RedundantCondition occurrences="2"> |
| 7 | + <RedundantCondition> |
8 | 8 | <code>$class->isSubclassOf($parentClass)</code> |
9 | 9 | <code>is_array($linesToBeCovered)</code> |
10 | 10 | </RedundantCondition> |
11 | 11 | </file> |
12 | 12 | <file src="src/Data/ProcessedCodeCoverageData.php"> |
13 | | - <PossiblyNullArgument occurrences="1"> |
| 13 | + <PossiblyNullArgument> |
14 | 14 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
15 | 15 | </PossiblyNullArgument> |
16 | | - <PossiblyNullArrayAccess occurrences="3"> |
| 16 | + <PossiblyNullArrayAccess> |
17 | 17 | <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
18 | 18 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]</code> |
19 | 19 | <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
20 | 20 | </PossiblyNullArrayAccess> |
21 | | - <PossiblyNullArrayAssignment occurrences="1"> |
| 21 | + <PossiblyNullArrayAssignment> |
22 | 22 | <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
23 | 23 | </PossiblyNullArrayAssignment> |
24 | 24 | </file> |
25 | 25 | <file src="src/Driver/PcovDriver.php"> |
26 | | - <UndefinedConstant occurrences="1"> |
| 26 | + <UndefinedConstant> |
27 | 27 | <code>inclusive</code> |
28 | 28 | </UndefinedConstant> |
29 | | - <UndefinedFunction occurrences="5"> |
| 29 | + <UndefinedFunction> |
30 | 30 | <code>clear()</code> |
31 | 31 | <code>collect(inclusive, $filesToCollectCoverageFor)</code> |
32 | 32 | <code>start()</code> |
|
35 | 35 | </UndefinedFunction> |
36 | 36 | </file> |
37 | 37 | <file src="src/Driver/XdebugDriver.php"> |
38 | | - <UndefinedConstant occurrences="5"> |
| 38 | + <UndefinedConstant> |
39 | 39 | <code>XDEBUG_CC_BRANCH_CHECK</code> |
40 | 40 | <code>XDEBUG_CC_DEAD_CODE</code> |
41 | 41 | <code>XDEBUG_CC_UNUSED</code> |
42 | 42 | <code>XDEBUG_FILTER_CODE_COVERAGE</code> |
43 | 43 | <code>XDEBUG_PATH_INCLUDE</code> |
44 | 44 | </UndefinedConstant> |
45 | | - <UndefinedFunction occurrences="1"> |
46 | | - <code>xdebug_info('mode')</code> |
47 | | - </UndefinedFunction> |
48 | 45 | </file> |
49 | 46 | <file src="src/Filter.php"> |
50 | | - <InvalidDocblockParamName occurrences="1"> |
| 47 | + <InvalidDocblockParamName> |
51 | 48 | <code>$files</code> |
52 | 49 | </InvalidDocblockParamName> |
53 | 50 | </file> |
54 | 51 | <file src="src/Node/Builder.php"> |
55 | | - <UnsupportedReferenceUsage occurrences="1"> |
| 52 | + <UnsupportedReferenceUsage> |
56 | 53 | <code>$pointer = &$pointer[$path[$i] . $type]</code> |
57 | 54 | </UnsupportedReferenceUsage> |
58 | 55 | </file> |
59 | 56 | <file src="src/Node/Directory.php"> |
60 | | - <InvalidPropertyAssignmentValue occurrences="2"> |
| 57 | + <InvalidPropertyAssignmentValue> |
61 | 58 | <code>$this->directories</code> |
62 | 59 | <code>$this->files</code> |
63 | 60 | </InvalidPropertyAssignmentValue> |
64 | | - <MissingTemplateParam occurrences="1"> |
| 61 | + <MissingTemplateParam> |
65 | 62 | <code>IteratorAggregate</code> |
66 | 63 | </MissingTemplateParam> |
67 | | - <UnsupportedReferenceUsage occurrences="2"> |
| 64 | + <UnsupportedReferenceUsage> |
68 | 65 | <code>$this->directories[] = &$this->children[count($this->children) - 1]</code> |
69 | 66 | <code>$this->files[] = &$this->children[count($this->children) - 1]</code> |
70 | 67 | </UnsupportedReferenceUsage> |
71 | 68 | </file> |
72 | 69 | <file src="src/Node/File.php"> |
73 | | - <InvalidPropertyAssignmentValue occurrences="3"> |
| 70 | + <InvalidPropertyAssignmentValue> |
74 | 71 | <code>$this->codeUnitsByLine</code> |
75 | 72 | <code>$this->codeUnitsByLine</code> |
76 | 73 | <code>$this->codeUnitsByLine</code> |
77 | 74 | </InvalidPropertyAssignmentValue> |
78 | 75 | </file> |
79 | 76 | <file src="src/Node/Iterator.php"> |
80 | | - <ArgumentTypeCoercion occurrences="1"> |
| 77 | + <ArgumentTypeCoercion> |
81 | 78 | <code>$this->nodes[$this->position]</code> |
82 | 79 | </ArgumentTypeCoercion> |
83 | | - <MissingTemplateParam occurrences="1"> |
| 80 | + <MissingTemplateParam> |
84 | 81 | <code>RecursiveIterator</code> |
85 | 82 | </MissingTemplateParam> |
86 | | - <PropertyNotSetInConstructor occurrences="1"> |
| 83 | + <PropertyNotSetInConstructor> |
87 | 84 | <code>$position</code> |
88 | 85 | </PropertyNotSetInConstructor> |
89 | | - <PropertyTypeCoercion occurrences="1"> |
| 86 | + <PropertyTypeCoercion> |
90 | 87 | <code>$node->children()</code> |
91 | 88 | </PropertyTypeCoercion> |
92 | 89 | </file> |
93 | 90 | <file src="src/Report/Html/Renderer.php"> |
94 | | - <InvalidArgument occurrences="1"/> |
95 | | - <PossiblyUndefinedArrayOffset occurrences="4"> |
| 91 | + <InvalidArgument> |
| 92 | + <code>[ |
| 93 | + 'id' => $node->id(), |
| 94 | + 'full_path' => $node->pathAsString(), |
| 95 | + 'path_to_root' => $this->pathToRoot($node), |
| 96 | + 'breadcrumbs' => $this->breadcrumbs($node), |
| 97 | + 'date' => $this->date, |
| 98 | + 'version' => $this->version, |
| 99 | + 'runtime' => $this->runtimeString(), |
| 100 | + 'generator' => $this->generator, |
| 101 | + 'low_upper_bound' => $this->thresholds->lowUpperBound(), |
| 102 | + 'high_lower_bound' => $this->thresholds->highLowerBound(), |
| 103 | + ]</code> |
| 104 | + </InvalidArgument> |
| 105 | + <PossiblyUndefinedArrayOffset> |
96 | 106 | <code>$data['branchesExecutedPercentAsString']</code> |
97 | 107 | <code>$data['linesExecutedPercentAsString']</code> |
98 | 108 | <code>$data['pathsExecutedPercentAsString']</code> |
99 | 109 | <code>$data['testedMethodsPercentAsString']</code> |
100 | 110 | </PossiblyUndefinedArrayOffset> |
101 | 111 | </file> |
102 | 112 | <file src="src/Report/Html/Renderer/File.php"> |
103 | | - <InvalidArgument occurrences="1"/> |
104 | | - <InvalidArrayOffset occurrences="1"> |
| 113 | + <InvalidArgument> |
| 114 | + <code>[ |
| 115 | + 'lineNumber' => $lineNumber, |
| 116 | + 'lineContent' => $lineContent, |
| 117 | + 'class' => $class, |
| 118 | + 'popover' => $popover, |
| 119 | + ]</code> |
| 120 | + </InvalidArgument> |
| 121 | + <InvalidArrayOffset> |
105 | 122 | <code>$tokens[$j - 1]</code> |
106 | 123 | </InvalidArrayOffset> |
107 | 124 | </file> |
108 | 125 | <file src="src/Report/Xml/BuildInformation.php"> |
109 | | - <PossiblyNullReference occurrences="1"> |
| 126 | + <PossiblyNullReference> |
110 | 127 | <code>createElementNS</code> |
111 | 128 | </PossiblyNullReference> |
112 | 129 | </file> |
113 | 130 | <file src="src/Report/Xml/Coverage.php"> |
114 | | - <PossiblyNullReference occurrences="2"> |
| 131 | + <PossiblyNullReference> |
115 | 132 | <code>createDocumentFragment</code> |
116 | 133 | <code>replaceChild</code> |
117 | 134 | </PossiblyNullReference> |
118 | 135 | </file> |
119 | 136 | <file src="src/Report/Xml/Facade.php"> |
120 | | - <PropertyNotSetInConstructor occurrences="2"> |
| 137 | + <PropertyNotSetInConstructor> |
121 | 138 | <code>$project</code> |
122 | 139 | <code>$target</code> |
123 | 140 | </PropertyNotSetInConstructor> |
124 | 141 | </file> |
125 | 142 | <file src="src/Report/Xml/File.php"> |
126 | | - <ArgumentTypeCoercion occurrences="1"> |
| 143 | + <ArgumentTypeCoercion> |
127 | 144 | <code>$totalsContainer</code> |
128 | 145 | </ArgumentTypeCoercion> |
129 | | - <PossiblyNullPropertyAssignmentValue occurrences="1"> |
| 146 | + <PossiblyNullPropertyAssignmentValue> |
130 | 147 | <code>$context->ownerDocument</code> |
131 | 148 | </PossiblyNullPropertyAssignmentValue> |
132 | 149 | </file> |
133 | 150 | <file src="src/Report/Xml/Node.php"> |
134 | | - <ArgumentTypeCoercion occurrences="1"> |
| 151 | + <ArgumentTypeCoercion> |
135 | 152 | <code>$totalsContainer</code> |
136 | 153 | </ArgumentTypeCoercion> |
137 | | - <PossiblyNullPropertyAssignmentValue occurrences="1"> |
| 154 | + <PossiblyNullPropertyAssignmentValue> |
138 | 155 | <code>$context->ownerDocument</code> |
139 | 156 | </PossiblyNullPropertyAssignmentValue> |
140 | | - <PropertyNotSetInConstructor occurrences="2"> |
| 157 | + <PropertyNotSetInConstructor> |
141 | 158 | <code>$contextNode</code> |
142 | 159 | <code>$dom</code> |
143 | 160 | </PropertyNotSetInConstructor> |
144 | 161 | </file> |
145 | 162 | <file src="src/Report/Xml/Report.php"> |
146 | | - <MissingParamType occurrences="4"> |
| 163 | + <MissingParamType> |
147 | 164 | <code>$name</code> |
148 | 165 | <code>$name</code> |
149 | 166 | <code>$name</code> |
150 | 167 | <code>$name</code> |
151 | 168 | </MissingParamType> |
152 | 169 | </file> |
153 | 170 | <file src="src/Report/Xml/Source.php"> |
154 | | - <PossiblyNullArgument occurrences="1"> |
| 171 | + <PossiblyNullArgument> |
155 | 172 | <code>$context->namespaceURI</code> |
156 | 173 | </PossiblyNullArgument> |
157 | | - <PossiblyNullReference occurrences="2"> |
| 174 | + <PossiblyNullReference> |
158 | 175 | <code>importNode</code> |
159 | 176 | <code>replaceChild</code> |
160 | 177 | </PossiblyNullReference> |
161 | 178 | </file> |
162 | 179 | <file src="src/Report/Xml/Tests.php"> |
163 | | - <PossiblyNullReference occurrences="1"> |
| 180 | + <PossiblyNullReference> |
164 | 181 | <code>createElementNS</code> |
165 | 182 | </PossiblyNullReference> |
166 | 183 | </file> |
167 | 184 | <file src="src/Report/Xml/Totals.php"> |
168 | | - <PossiblyNullReference occurrences="1"> |
| 185 | + <PossiblyNullReference> |
169 | 186 | <code>createElementNS</code> |
170 | 187 | </PossiblyNullReference> |
171 | 188 | </file> |
172 | 189 | <file src="src/Report/Xml/Unit.php"> |
173 | | - <PossiblyNullReference occurrences="2"> |
| 190 | + <PossiblyNullReference> |
174 | 191 | <code>createElementNS</code> |
175 | 192 | <code>createElementNS</code> |
176 | 193 | </PossiblyNullReference> |
177 | 194 | </file> |
178 | 195 | <file src="src/StaticAnalysis/CachingFileAnalyser.php"> |
179 | | - <NullableReturnStatement occurrences="6"> |
| 196 | + <NullableReturnStatement> |
180 | 197 | <code>$this->cache[$filename]['classesIn']</code> |
181 | 198 | <code>$this->cache[$filename]['executableLinesIn']</code> |
182 | 199 | <code>$this->cache[$filename]['functionsIn']</code> |
183 | 200 | <code>$this->cache[$filename]['ignoredLinesFor']</code> |
184 | 201 | <code>$this->cache[$filename]['linesOfCodeFor']</code> |
185 | 202 | <code>$this->cache[$filename]['traitsIn']</code> |
186 | 203 | </NullableReturnStatement> |
187 | | - <PossiblyNullArrayAccess occurrences="6"> |
| 204 | + <PossiblyNullArrayAccess> |
188 | 205 | <code>$this->cache[$filename]['classesIn']</code> |
189 | 206 | <code>$this->cache[$filename]['executableLinesIn']</code> |
190 | 207 | <code>$this->cache[$filename]['functionsIn']</code> |
191 | 208 | <code>$this->cache[$filename]['ignoredLinesFor']</code> |
192 | 209 | <code>$this->cache[$filename]['linesOfCodeFor']</code> |
193 | 210 | <code>$this->cache[$filename]['traitsIn']</code> |
194 | 211 | </PossiblyNullArrayAccess> |
195 | | - <PossiblyUndefinedArrayOffset occurrences="6"> |
| 212 | + <PossiblyUndefinedArrayOffset> |
196 | 213 | <code>$this->cache[$filename]</code> |
197 | 214 | <code>$this->cache[$filename]</code> |
198 | 215 | <code>$this->cache[$filename]</code> |
|
202 | 219 | </PossiblyUndefinedArrayOffset> |
203 | 220 | </file> |
204 | 221 | <file src="src/StaticAnalysis/CodeUnitFindingVisitor.php"> |
205 | | - <PossiblyInvalidOperand occurrences="1"> |
| 222 | + <PossiblyInvalidOperand> |
206 | 223 | <code>$parameter->var->name</code> |
207 | 224 | </PossiblyInvalidOperand> |
208 | | - <PossiblyNullReference occurrences="4"> |
| 225 | + <PossiblyNullReference> |
209 | 226 | <code>toString</code> |
210 | 227 | <code>toString</code> |
211 | 228 | <code>toString</code> |
212 | 229 | <code>toString</code> |
213 | 230 | </PossiblyNullReference> |
214 | | - <PossiblyUndefinedMethod occurrences="1"> |
| 231 | + <PossiblyUndefinedMethod> |
215 | 232 | <code>toString</code> |
216 | 233 | </PossiblyUndefinedMethod> |
217 | | - <RedundantConditionGivenDocblockType occurrences="6"> |
| 234 | + <RedundantConditionGivenDocblockType> |
218 | 235 | <code>assert($node->namespacedName instanceof Name)</code> |
219 | 236 | <code>assert($node->namespacedName instanceof Name)</code> |
220 | 237 | <code>assert($parentNode->namespacedName instanceof Name)</code> |
|
0 commit comments