|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<files psalm-version="5.5.0@b63061a27f2683ec0f3509012bb22daab3b65b61"> |
| 2 | +<files psalm-version="5.7.1@8e0fd880141f236847ab49a06f94f788d41a4292"> |
3 | 3 | <file src="src/CodeCoverage.php"> |
4 | 4 | <ArgumentTypeCoercion> |
5 | 5 | <code>$tmp[0]</code> |
6 | 6 | </ArgumentTypeCoercion> |
7 | 7 | <RedundantCondition> |
8 | | - <code>$class->isSubclassOf($parentClass)</code> |
| 8 | + <code><![CDATA[$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 | 13 | <PossiblyNullArgument> |
14 | | - <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
| 14 | + <code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']]]></code> |
15 | 15 | </PossiblyNullArgument> |
16 | 16 | <PossiblyNullArrayAccess> |
17 | | - <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
18 | | - <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]</code> |
19 | | - <code>$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code> |
| 17 | + <code><![CDATA[$this->functionCoverage[$file][$functionName]['branches']]]></code> |
| 18 | + <code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]]]></code> |
| 19 | + <code><![CDATA[$this->functionCoverage[$file][$functionName]['branches'][$branchId]['hit']]]></code> |
20 | 20 | </PossiblyNullArrayAccess> |
21 | 21 | <PossiblyNullArrayAssignment> |
22 | | - <code>$this->functionCoverage[$file][$functionName]['branches']</code> |
| 22 | + <code><![CDATA[$this->functionCoverage[$file][$functionName]['branches']]]></code> |
23 | 23 | </PossiblyNullArrayAssignment> |
24 | 24 | </file> |
25 | 25 | <file src="src/Driver/PcovDriver.php"> |
|
50 | 50 | </file> |
51 | 51 | <file src="src/Node/Builder.php"> |
52 | 52 | <UnsupportedReferenceUsage> |
53 | | - <code>$pointer = &$pointer[$path[$i] . $type]</code> |
| 53 | + <code><![CDATA[$pointer = &$pointer[$path[$i] . $type]]]></code> |
54 | 54 | </UnsupportedReferenceUsage> |
55 | 55 | </file> |
56 | 56 | <file src="src/Node/Directory.php"> |
57 | 57 | <InvalidPropertyAssignmentValue> |
58 | | - <code>$this->directories</code> |
59 | | - <code>$this->files</code> |
| 58 | + <code><![CDATA[$this->directories]]></code> |
| 59 | + <code><![CDATA[$this->files]]></code> |
60 | 60 | </InvalidPropertyAssignmentValue> |
61 | 61 | <MissingTemplateParam> |
62 | 62 | <code>IteratorAggregate</code> |
63 | 63 | </MissingTemplateParam> |
64 | 64 | <UnsupportedReferenceUsage> |
65 | | - <code>$this->directories[] = &$this->children[count($this->children) - 1]</code> |
66 | | - <code>$this->files[] = &$this->children[count($this->children) - 1]</code> |
| 65 | + <code><![CDATA[$this->directories[] = &$this->children[count($this->children) - 1]]]></code> |
| 66 | + <code><![CDATA[$this->files[] = &$this->children[count($this->children) - 1]]]></code> |
67 | 67 | </UnsupportedReferenceUsage> |
68 | 68 | </file> |
69 | 69 | <file src="src/Node/File.php"> |
70 | 70 | <InvalidPropertyAssignmentValue> |
71 | | - <code>$this->codeUnitsByLine</code> |
72 | | - <code>$this->codeUnitsByLine</code> |
73 | | - <code>$this->codeUnitsByLine</code> |
| 71 | + <code><![CDATA[$this->codeUnitsByLine]]></code> |
| 72 | + <code><![CDATA[$this->codeUnitsByLine]]></code> |
| 73 | + <code><![CDATA[$this->codeUnitsByLine]]></code> |
74 | 74 | </InvalidPropertyAssignmentValue> |
75 | 75 | </file> |
76 | 76 | <file src="src/Node/Iterator.php"> |
77 | 77 | <ArgumentTypeCoercion> |
78 | | - <code>$this->nodes[$this->position]</code> |
| 78 | + <code><![CDATA[$this->nodes[$this->position]]]></code> |
79 | 79 | </ArgumentTypeCoercion> |
80 | 80 | <MissingTemplateParam> |
81 | 81 | <code>RecursiveIterator</code> |
|
84 | 84 | <code>$position</code> |
85 | 85 | </PropertyNotSetInConstructor> |
86 | 86 | <PropertyTypeCoercion> |
87 | | - <code>$node->children()</code> |
| 87 | + <code><![CDATA[$node->children()]]></code> |
88 | 88 | </PropertyTypeCoercion> |
89 | 89 | </file> |
90 | 90 | <file src="src/Report/Html/Renderer.php"> |
91 | 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> |
| 92 | + <code><![CDATA[[ |
| 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 | 104 | </InvalidArgument> |
105 | 105 | <PossiblyUndefinedArrayOffset> |
106 | | - <code>$data['branchesExecutedPercentAsString']</code> |
107 | | - <code>$data['linesExecutedPercentAsString']</code> |
108 | | - <code>$data['pathsExecutedPercentAsString']</code> |
109 | | - <code>$data['testedMethodsPercentAsString']</code> |
| 106 | + <code><![CDATA[$data['branchesExecutedPercentAsString']]]></code> |
| 107 | + <code><![CDATA[$data['linesExecutedPercentAsString']]]></code> |
| 108 | + <code><![CDATA[$data['pathsExecutedPercentAsString']]]></code> |
| 109 | + <code><![CDATA[$data['testedMethodsPercentAsString']]]></code> |
110 | 110 | </PossiblyUndefinedArrayOffset> |
111 | 111 | </file> |
112 | 112 | <file src="src/Report/Html/Renderer/File.php"> |
113 | 113 | <InvalidArgument> |
114 | | - <code>[ |
115 | | - 'lineNumber' => $lineNumber, |
116 | | - 'lineContent' => $lineContent, |
117 | | - 'class' => $class, |
118 | | - 'popover' => $popover, |
119 | | - ]</code> |
| 114 | + <code><![CDATA[[ |
| 115 | + 'lineNumber' => $lineNumber, |
| 116 | + 'lineContent' => $lineContent, |
| 117 | + 'class' => $class, |
| 118 | + 'popover' => $popover, |
| 119 | + ]]]></code> |
120 | 120 | </InvalidArgument> |
121 | 121 | <InvalidArrayOffset> |
122 | 122 | <code>$tokens[$j - 1]</code> |
|
144 | 144 | <code>$totalsContainer</code> |
145 | 145 | </ArgumentTypeCoercion> |
146 | 146 | <PossiblyNullPropertyAssignmentValue> |
147 | | - <code>$context->ownerDocument</code> |
| 147 | + <code><![CDATA[$context->ownerDocument]]></code> |
148 | 148 | </PossiblyNullPropertyAssignmentValue> |
149 | 149 | </file> |
150 | 150 | <file src="src/Report/Xml/Node.php"> |
151 | 151 | <ArgumentTypeCoercion> |
152 | 152 | <code>$totalsContainer</code> |
153 | 153 | </ArgumentTypeCoercion> |
154 | 154 | <PossiblyNullPropertyAssignmentValue> |
155 | | - <code>$context->ownerDocument</code> |
| 155 | + <code><![CDATA[$context->ownerDocument]]></code> |
156 | 156 | </PossiblyNullPropertyAssignmentValue> |
157 | 157 | <PropertyNotSetInConstructor> |
158 | 158 | <code>$contextNode</code> |
|
169 | 169 | </file> |
170 | 170 | <file src="src/Report/Xml/Source.php"> |
171 | 171 | <PossiblyNullArgument> |
172 | | - <code>$context->namespaceURI</code> |
| 172 | + <code><![CDATA[$context->namespaceURI]]></code> |
173 | 173 | </PossiblyNullArgument> |
174 | 174 | <PossiblyNullReference> |
175 | 175 | <code>importNode</code> |
|
194 | 194 | </file> |
195 | 195 | <file src="src/StaticAnalysis/CachingFileAnalyser.php"> |
196 | 196 | <NullableReturnStatement> |
197 | | - <code>$this->cache[$filename]['classesIn']</code> |
198 | | - <code>$this->cache[$filename]['executableLinesIn']</code> |
199 | | - <code>$this->cache[$filename]['functionsIn']</code> |
200 | | - <code>$this->cache[$filename]['ignoredLinesFor']</code> |
201 | | - <code>$this->cache[$filename]['linesOfCodeFor']</code> |
202 | | - <code>$this->cache[$filename]['traitsIn']</code> |
| 197 | + <code><![CDATA[$this->cache[$filename]['classesIn']]]></code> |
| 198 | + <code><![CDATA[$this->cache[$filename]['executableLinesIn']]]></code> |
| 199 | + <code><![CDATA[$this->cache[$filename]['functionsIn']]]></code> |
| 200 | + <code><![CDATA[$this->cache[$filename]['ignoredLinesFor']]]></code> |
| 201 | + <code><![CDATA[$this->cache[$filename]['linesOfCodeFor']]]></code> |
| 202 | + <code><![CDATA[$this->cache[$filename]['traitsIn']]]></code> |
203 | 203 | </NullableReturnStatement> |
204 | 204 | <PossiblyNullArrayAccess> |
205 | | - <code>$this->cache[$filename]['classesIn']</code> |
206 | | - <code>$this->cache[$filename]['executableLinesIn']</code> |
207 | | - <code>$this->cache[$filename]['functionsIn']</code> |
208 | | - <code>$this->cache[$filename]['ignoredLinesFor']</code> |
209 | | - <code>$this->cache[$filename]['linesOfCodeFor']</code> |
210 | | - <code>$this->cache[$filename]['traitsIn']</code> |
| 205 | + <code><![CDATA[$this->cache[$filename]['classesIn']]]></code> |
| 206 | + <code><![CDATA[$this->cache[$filename]['executableLinesIn']]]></code> |
| 207 | + <code><![CDATA[$this->cache[$filename]['functionsIn']]]></code> |
| 208 | + <code><![CDATA[$this->cache[$filename]['ignoredLinesFor']]]></code> |
| 209 | + <code><![CDATA[$this->cache[$filename]['linesOfCodeFor']]]></code> |
| 210 | + <code><![CDATA[$this->cache[$filename]['traitsIn']]]></code> |
211 | 211 | </PossiblyNullArrayAccess> |
212 | 212 | <PossiblyUndefinedArrayOffset> |
213 | | - <code>$this->cache[$filename]</code> |
214 | | - <code>$this->cache[$filename]</code> |
215 | | - <code>$this->cache[$filename]</code> |
216 | | - <code>$this->cache[$filename]</code> |
217 | | - <code>$this->cache[$filename]</code> |
218 | | - <code>$this->cache[$filename]</code> |
| 213 | + <code><![CDATA[$this->cache[$filename]]]></code> |
| 214 | + <code><![CDATA[$this->cache[$filename]]]></code> |
| 215 | + <code><![CDATA[$this->cache[$filename]]]></code> |
| 216 | + <code><![CDATA[$this->cache[$filename]]]></code> |
| 217 | + <code><![CDATA[$this->cache[$filename]]]></code> |
| 218 | + <code><![CDATA[$this->cache[$filename]]]></code> |
219 | 219 | </PossiblyUndefinedArrayOffset> |
220 | 220 | </file> |
221 | 221 | <file src="src/StaticAnalysis/CodeUnitFindingVisitor.php"> |
222 | 222 | <PossiblyInvalidOperand> |
223 | | - <code>$parameter->var->name</code> |
| 223 | + <code><![CDATA[$parameter->var->name]]></code> |
224 | 224 | </PossiblyInvalidOperand> |
225 | 225 | <PossiblyNullReference> |
226 | 226 | <code>toString</code> |
|
232 | 232 | <code>toString</code> |
233 | 233 | </PossiblyUndefinedMethod> |
234 | 234 | <RedundantConditionGivenDocblockType> |
235 | | - <code>assert($node->namespacedName instanceof Name)</code> |
236 | | - <code>assert($node->namespacedName instanceof Name)</code> |
237 | | - <code>assert($parentNode->namespacedName instanceof Name)</code> |
238 | | - <code>assert(isset($node->name))</code> |
239 | | - <code>assert(isset($node->namespacedName))</code> |
240 | | - <code>assert(isset($parameter->var->name))</code> |
| 235 | + <code><![CDATA[assert($node->namespacedName instanceof Name)]]></code> |
| 236 | + <code><![CDATA[assert($node->namespacedName instanceof Name)]]></code> |
| 237 | + <code><![CDATA[assert($parentNode->namespacedName instanceof Name)]]></code> |
| 238 | + <code><![CDATA[assert(isset($node->name))]]></code> |
| 239 | + <code><![CDATA[assert(isset($node->namespacedName))]]></code> |
| 240 | + <code><![CDATA[assert(isset($parameter->var->name))]]></code> |
241 | 241 | </RedundantConditionGivenDocblockType> |
242 | 242 | </file> |
243 | 243 | </files> |
0 commit comments