|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<files psalm-version="3.18.2@19aa905f7c3c7350569999a93c40ae91ae4e1626"> |
| 2 | +<files psalm-version="4.0.1@b1e2e30026936ef8d5bf6a354d1c3959b6231f44"> |
3 | 3 | <file src="src/Framework/Assert.php">
|
4 | 4 | <ArgumentTypeCoercion occurrences="2">
|
5 | 5 | <code>$actualElement->childNodes->item($i)</code>
|
|
158 | 158 | <code>$expected</code>
|
159 | 159 | <code>$expected</code>
|
160 | 160 | </PossiblyInvalidArgument>
|
161 |
| - <PossiblyUnusedMethod occurrences="1"> |
162 |
| - <code>getCount</code> |
163 |
| - </PossiblyUnusedMethod> |
164 | 161 | <RedundantCondition occurrences="1">
|
165 | 162 | <code>assert($step['object'] instanceof TestCase)</code>
|
166 | 163 | </RedundantCondition>
|
|
452 | 449 | <code>$comparisonFailure</code>
|
453 | 450 | </PossiblyNullPropertyAssignmentValue>
|
454 | 451 | </file>
|
455 |
| - <file src="src/Framework/Exception/MissingCoversAnnotationException.php"> |
456 |
| - <UnusedClass occurrences="1"> |
457 |
| - <code>MissingCoversAnnotationException</code> |
458 |
| - </UnusedClass> |
459 |
| - </file> |
460 |
| - <file src="src/Framework/Exception/UnintentionallyCoveredCodeError.php"> |
461 |
| - <UnusedClass occurrences="1"> |
462 |
| - <code>UnintentionallyCoveredCodeError</code> |
463 |
| - </UnusedClass> |
464 |
| - </file> |
465 | 452 | <file src="src/Framework/ExceptionWrapper.php">
|
466 | 453 | <MissingThrowsDocblock occurrences="1">
|
467 | 454 | <code>Filter::getFilteredStacktrace($this)</code>
|
|
1020 | 1007 | </PossiblyUnusedMethod>
|
1021 | 1008 | </file>
|
1022 | 1009 | <file src="src/Framework/TestResult.php">
|
| 1010 | + <ArgumentTypeCoercion occurrences="1"> |
| 1011 | + <code>$test</code> |
| 1012 | + </ArgumentTypeCoercion> |
1023 | 1013 | <DeprecatedClass occurrences="4">
|
1024 | 1014 | <code>TestListener</code>
|
1025 | 1015 | <code>TestListener</code>
|
|
1037 | 1027 | <DocblockTypeContradiction occurrences="1">
|
1038 | 1028 | <code>$this->topTestSuite === null</code>
|
1039 | 1029 | </DocblockTypeContradiction>
|
| 1030 | + <InvalidArgument occurrences="1"> |
| 1031 | + <code>[$test, 'runBare']</code> |
| 1032 | + </InvalidArgument> |
| 1033 | + <InvalidCatch occurrences="1"/> |
1040 | 1034 | <MissingConstructor occurrences="2">
|
1041 | 1035 | <code>$codeCoverage</code>
|
1042 | 1036 | <code>$topTestSuite</code>
|
1043 | 1037 | </MissingConstructor>
|
1044 |
| - <PossiblyUndefinedVariable occurrences="1"> |
| 1038 | + <MissingThrowsDocblock occurrences="1"> |
| 1039 | + <code>stop</code> |
| 1040 | + </MissingThrowsDocblock> |
| 1041 | + <PossiblyInvalidArgument occurrences="1"> |
| 1042 | + <code>$linesToBeCovered</code> |
| 1043 | + </PossiblyInvalidArgument> |
| 1044 | + <PossiblyUndefinedVariable occurrences="3"> |
| 1045 | + <code>$_timeout</code> |
| 1046 | + <code>$_timeout</code> |
1045 | 1047 | <code>$isAnyCoverageRequired</code>
|
1046 | 1048 | </PossiblyUndefinedVariable>
|
1047 | 1049 | <PossiblyUnusedMethod occurrences="19">
|
|
1069 | 1071 | <code>$this->codeCoverage !== null</code>
|
1070 | 1072 | <code>$this->codeCoverage !== null</code>
|
1071 | 1073 | </RedundantConditionGivenDocblockType>
|
| 1074 | + <UndefinedInterfaceMethod occurrences="8"> |
| 1075 | + <code>addToAssertionCount</code> |
| 1076 | + <code>addToAssertionCount</code> |
| 1077 | + <code>getAnnotations</code> |
| 1078 | + <code>getNumAssertions</code> |
| 1079 | + <code>getSize</code> |
| 1080 | + <code>getSize</code> |
| 1081 | + <code>getSize</code> |
| 1082 | + <code>runBare</code> |
| 1083 | + </UndefinedInterfaceMethod> |
1072 | 1084 | </file>
|
1073 | 1085 | <file src="src/Framework/TestSuite.php">
|
1074 | 1086 | <ArgumentTypeCoercion occurrences="2">
|
|
1197 | 1209 | <code>FileLoader::checkAndLoad($suiteClassFile)</code>
|
1198 | 1210 | </MissingThrowsDocblock>
|
1199 | 1211 | </file>
|
1200 |
| - <file src="src/Runner/TestResultCache.php"> |
1201 |
| - <PossiblyUnusedMethod occurrences="1"> |
1202 |
| - <code>load</code> |
1203 |
| - </PossiblyUnusedMethod> |
1204 |
| - </file> |
1205 | 1212 | <file src="src/Runner/TestSuiteLoader.php">
|
1206 | 1213 | <PossiblyUnusedMethod occurrences="1">
|
1207 | 1214 | <code>reload</code>
|
|
1301 | 1308 | <UnsafeInstantiation occurrences="1">
|
1302 | 1309 | <code>new static</code>
|
1303 | 1310 | </UnsafeInstantiation>
|
1304 |
| - <UnusedVariable occurrences="1"> |
1305 |
| - <code>$handler</code> |
1306 |
| - </UnusedVariable> |
1307 | 1311 | </file>
|
1308 | 1312 | <file src="src/TextUI/DefaultResultPrinter.php">
|
1309 | 1313 | <DeprecatedInterface occurrences="1">
|
|
1384 | 1388 | <code>processSuiteFilters</code>
|
1385 | 1389 | <code>writeMessage</code>
|
1386 | 1390 | </UnusedMethod>
|
1387 |
| - <UnusedParam occurrences="2"> |
| 1391 | + <UnusedParam occurrences="1"> |
1388 | 1392 | <code>$exit</code>
|
1389 |
| - <code>$warnings</code> |
1390 | 1393 | </UnusedParam>
|
1391 | 1394 | </file>
|
1392 | 1395 | <file src="src/TextUI/XmlConfiguration/CodeCoverage/CodeCoverage.php">
|
|
1798 | 1801 | <PossiblyUnusedMethod occurrences="1">
|
1799 | 1802 | <code>unregister</code>
|
1800 | 1803 | </PossiblyUnusedMethod>
|
| 1804 | + <UnusedClosureParam occurrences="1"> |
| 1805 | + <code>$errorString</code> |
| 1806 | + </UnusedClosureParam> |
1801 | 1807 | </file>
|
1802 | 1808 | <file src="src/Util/ExcludeList.php">
|
1803 | 1809 | <DocblockTypeContradiction occurrences="1">
|
|
1809 | 1815 | <UnresolvableInclude occurrences="1">
|
1810 | 1816 | <code>include_once $filename</code>
|
1811 | 1817 | </UnresolvableInclude>
|
1812 |
| - <UnusedParam occurrences="1"> |
1813 |
| - <code>$filename</code> |
1814 |
| - </UnusedParam> |
1815 | 1818 | </file>
|
1816 | 1819 | <file src="src/Util/GlobalState.php">
|
1817 | 1820 | <MissingParamType occurrences="1">
|
|
1825 | 1828 | <MissingParamType occurrences="1">
|
1826 | 1829 | <code>$json</code>
|
1827 | 1830 | </MissingParamType>
|
| 1831 | + <UnusedVariable occurrences="1"> |
| 1832 | + <code>$key</code> |
| 1833 | + </UnusedVariable> |
1828 | 1834 | </file>
|
1829 | 1835 | <file src="src/Util/Log/JUnit.php">
|
1830 | 1836 | <ArgumentTypeCoercion occurrences="1">
|
|
1882 | 1888 | <code>TeamCity</code>
|
1883 | 1889 | <code>TeamCity</code>
|
1884 | 1890 | </PropertyNotSetInConstructor>
|
1885 |
| - <RedundantCondition occurrences="1"> |
1886 |
| - <code>$previous->getPrevious()</code> |
1887 |
| - </RedundantCondition> |
1888 | 1891 | <UndefinedInterfaceMethod occurrences="7">
|
1889 | 1892 | <code>getName</code>
|
1890 | 1893 | <code>getName</code>
|
|
1964 | 1967 | <code>requirements</code>
|
1965 | 1968 | <code>requirements</code>
|
1966 | 1969 | </MissingThrowsDocblock>
|
1967 |
| - <PossiblyUnusedMethod occurrences="2"> |
1968 |
| - <code>getLinesToBeCovered</code> |
1969 |
| - <code>getLinesToBeUsed</code> |
1970 |
| - </PossiblyUnusedMethod> |
1971 | 1970 | </file>
|
1972 | 1971 | <file src="src/Util/TestDox/CliTestDoxPrinter.php">
|
1973 | 1972 | <DeprecatedInterface occurrences="1">
|
|
0 commit comments