diff --git a/.psalm/baseline.xml b/.psalm/baseline.xml index 8a38d434f10..2d4a7cab135 100644 --- a/.psalm/baseline.xml +++ b/.psalm/baseline.xml @@ -1,29 +1,29 @@ - + childNodes->item($i)]]> childNodes->item($i)]]> - ClassHasAttribute - ClassHasStaticAttribute - ObjectHasAttribute - new ClassHasAttribute($attributeName) - new ClassHasAttribute($attributeName) - new ClassHasAttribute($attributeName) - new ClassHasStaticAttribute($attributeName) - new ClassHasStaticAttribute($attributeName) - new ClassHasStaticAttribute($attributeName) - new ObjectHasAttribute($attributeName) - new ObjectHasAttribute($attributeName) - new ObjectHasAttribute($attributeName) + + + + + + + + + + + + - Xml::import($actualElement) - Xml::import($expectedElement) - Xml::removeCharacterDataNodes($actualElement) - Xml::removeCharacterDataNodes($expectedElement) + + + + childNodes->item($i), $actualElement->childNodes->item($i), @@ -38,365 +38,365 @@ - is_int($key) || is_string($key) - is_int($key) || is_string($key) - is_object($object) - is_object($object) - is_string($key) - is_string($key) + + + + + + - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $attributeName - $condition - $condition - $condition - $condition - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $needle - $needle - $needle - $needle - $prefix - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - loadFile - loadFile - loadFile - loadFile - new IsType($type) - new IsType(IsType::TYPE_ARRAY) - new IsType(IsType::TYPE_ARRAY) - new IsType(IsType::TYPE_BOOL) - new IsType(IsType::TYPE_BOOL) - new IsType(IsType::TYPE_CALLABLE) - new IsType(IsType::TYPE_CALLABLE) - new IsType(IsType::TYPE_CLOSED_RESOURCE) - new IsType(IsType::TYPE_CLOSED_RESOURCE) - new IsType(IsType::TYPE_FLOAT) - new IsType(IsType::TYPE_FLOAT) - new IsType(IsType::TYPE_INT) - new IsType(IsType::TYPE_INT) - new IsType(IsType::TYPE_ITERABLE) - new IsType(IsType::TYPE_ITERABLE) - new IsType(IsType::TYPE_NUMERIC) - new IsType(IsType::TYPE_NUMERIC) - new IsType(IsType::TYPE_OBJECT) - new IsType(IsType::TYPE_OBJECT) - new IsType(IsType::TYPE_RESOURCE) - new IsType(IsType::TYPE_RESOURCE) - new IsType(IsType::TYPE_SCALAR) - new IsType(IsType::TYPE_SCALAR) - new IsType(IsType::TYPE_STRING) - new IsType(IsType::TYPE_STRING) - new TraversableContainsOnly( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - new TraversableContainsOnly( + )]]> + - new TraversableContainsOnly( + )]]> + - new TraversableContainsOnly($className, false) - new TraversableContainsOnly($type) - static::assertThat( + )]]> + + + - static::assertThat( + )]]> + - static::assertThat( + )]]> + - static::assertThat($haystack, $constraint, $message) - static::assertThat($haystack, $constraint, $message) - static::assertThat($haystack, $constraint, $message) - static::assertThat($haystack, $constraint, $message) + )]]> + + + + - $expected - $expected + + - $hint = self::detectLocationHint($message) + - ClassHasAttribute - ClassHasStaticAttribute - InvokedAtIndexMatcher - ObjectHasAttribute - new InvokedAtIndexMatcher($index) + + + + + - Assert::assertClassHasAttribute(...func_get_args()) - Assert::assertClassHasStaticAttribute(...func_get_args()) - Assert::assertClassNotHasAttribute(...func_get_args()) - Assert::assertClassNotHasStaticAttribute(...func_get_args()) - Assert::assertDirectoryNotExists(...func_get_args()) - Assert::assertDirectoryNotIsReadable(...func_get_args()) - Assert::assertDirectoryNotIsWritable(...func_get_args()) - Assert::assertEqualXMLStructure(...func_get_args()) - Assert::assertFileNotExists(...func_get_args()) - Assert::assertFileNotIsReadable(...func_get_args()) - Assert::assertFileNotIsWritable(...func_get_args()) - Assert::assertNotIsReadable(...func_get_args()) - Assert::assertNotIsWritable(...func_get_args()) - Assert::assertNotRegExp(...func_get_args()) - Assert::assertObjectHasAttribute(...func_get_args()) - Assert::assertObjectNotHasAttribute(...func_get_args()) - Assert::assertRegExp(...func_get_args()) - Assert::classHasAttribute(...func_get_args()) - Assert::classHasStaticAttribute(...func_get_args()) - Assert::objectHasAttribute(...func_get_args()) + + + + + + + + + + + + + + + + + + + + - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $actual - $attributeName - $callback - $condition - $condition - $condition - $condition - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $expected - $key - $needle - $needle - $needle - $needle - $prefix - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value - $value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Assert::logicalAnd(...func_get_args()) + - Assert::anything(...func_get_args()) - Assert::directoryExists(...func_get_args()) - Assert::fileExists(...func_get_args()) - Assert::isEmpty(...func_get_args()) - Assert::isFalse(...func_get_args()) - Assert::isFinite(...func_get_args()) - Assert::isInfinite(...func_get_args()) - Assert::isJson(...func_get_args()) - Assert::isNan(...func_get_args()) - Assert::isNull(...func_get_args()) - Assert::isReadable(...func_get_args()) - Assert::isTrue(...func_get_args()) - Assert::isWritable(...func_get_args()) + + + + + + + + + + + + + - $other + - getCountOf + - getCountOf + - $other + - $other - $value + + - $other - $value + + - $other - $value + + - $other - $value + + - Filter::getFilteredStacktrace($other) + - $other + - $other + getMessage()]]> @@ -404,18 +404,18 @@ - $other + - $other + - $other - $value + + @@ -429,7 +429,7 @@ - ClassHasAttribute + - getMethod + - ClassHasAttribute + - hasProperty + - hasProperty + - new static + - evaluate - evaluate + + - $constraint + @@ -480,7 +480,7 @@ - $line + @@ -493,10 +493,10 @@ - $value + - value + @@ -506,30 +506,30 @@ - $className + - DataProviderTestSuite - DataProviderTestSuite + + - $code - $message + + - Filter::getFilteredStacktrace($this) + - $comparisonFailure + - Filter::getFilteredStacktrace($this) + getPrevious()]]> @@ -537,54 +537,54 @@ - $target - $target + + - $parts[1] + - empty($methodName) + - id + - new Rule\ConsecutiveParameters($arguments) + - $id - $id + + - $nextValues - $value + + - $arguments + - $value + - $arguments - $arguments - $className - $className - $interfaceName - $methods + + + + + + @@ -605,43 +605,43 @@ - $type + - getObject + - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock + + + + + + + + __getFunctions()]]> - !$parameterStart - empty($methods) + + - $types + - throw $t; + - invoke + - $deferredError + deferredError]]> @@ -655,12 +655,12 @@ parametersRule === null]]> - invoked + - $methodNameRule - $parametersRule - $stub + + + invocationRule !== null]]> @@ -681,12 +681,12 @@ type]]> - setMethods + - $object - $object - $object + + + @@ -694,7 +694,7 @@ - $type + @@ -702,7 +702,7 @@ mockName]]> - class-string + @@ -721,12 +721,12 @@ -2, ), )[1]]]> - (string) var_export($defaultValue, true) + - $originalObject + @@ -734,13 +734,13 @@ mockName]]> - class-string + - invoked - invokedDo + + @@ -748,11 +748,11 @@ invocation === null]]> - null + - $invocation - $parameterVerificationResult + + parameterVerificationResult]]> @@ -763,69 +763,69 @@ - invoke + - $argumentIndex + - invoke + - $callback + - $callback + - invoke + - $reference + - invoke + - invoke + - $value + - invoke + - invoke + - invoke + - $data + - buildTestWithoutData + - Filter::getFilteredStacktrace($t) - Filter::getFilteredStacktrace($t) + + @@ -837,11 +837,11 @@ expectedException]]> - InvokedAtIndexMatcher - new InvokedAtIndexMatcher($index) + + - setMethods + backupGlobalsBlacklist]]> @@ -854,115 +854,115 @@ prophet === null]]> - $header + - $mockObject - get_class($mock) + + ]]> - $args - $args - $callback - $result - $value + + + + + - getResult - runTest + + name, )]]> - cacheDirectory - endTest - endTest - endTest - generateClassFromWsdl - generateClassFromWsdl - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMock - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForAbstractClass - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getMockForTrait - getObjectForTrait - getObjectForTrait - getObjectForTrait - new Differ($header) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -982,48 +982,48 @@ - $beStrictAboutChangesToGlobalState - null - null + + + - $mockObjectGenerator - $outputBufferingLevel - $prophet - $result + + + + - $this instanceof PhptTestCase + prophet !== null]]> - $e - ObjectProphecy - PredictionException - PredictionException - Prophet - Prophet + + + + + + prophet]]> prophet]]> - Prophet - \Prophecy\Exception\Doubler\ClassNotFoundException - \Prophecy\Exception\Doubler\DoubleException - \Prophecy\Exception\Doubler\InterfaceNotFoundException + + + + - $test + - TestListener - TestListener - TestListener[] - private $listeners = []; + + + + listeners]]> @@ -1042,10 +1042,10 @@ - $codeCoverage + - stop + getMessage(), $e->getCode(), @@ -1058,53 +1058,53 @@ );]]> - $linesToBeCovered + - $_timeout - $e - $e - $e - $isAnyCoverageRequired + + + + + codeCoverage !== null]]> codeCoverage !== null]]> - addToAssertionCount - addToAssertionCount - doesNotPerformAssertions - doesNotPerformAssertions - doesNotPerformAssertions - getActualOutput - getName - getName - getNumAssertions - getNumAssertions - getNumAssertions - getNumAssertions - hasOutput - runBare + + + + + + + + + + + + + + - $className - $className + + getName(), $methodName)]]> getName(), $methodName)]]> - is_string($testClass) + backupGlobals]]> backupStaticAttributes]]> beStrictAboutChangesToGlobalState]]> - FileLoader::checkAndLoad($filename) - new PhptTestCase($filename) + + getMessage(), $e->getCode(), @@ -1112,19 +1112,19 @@ );]]> - $backupGlobals - $backupStaticAttributes - $beStrictAboutChangesToGlobalState - $iteratorFilter + + + + - (string) $key + iteratorFilter !== null]]> - is_bool($backupGlobals) - is_bool($backupStaticAttributes) - is_bool($beStrictAboutChangesToGlobalState) + + + backupGlobals && is_bool($backupGlobals)]]> backupStaticAttributes && is_bool($backupStaticAttributes)]]> beStrictAboutChangesToGlobalState && is_bool($beStrictAboutChangesToGlobalState)]]> @@ -1132,10 +1132,10 @@ - new StandardTestSuiteLoader + - TestSuiteLoader + @@ -1143,15 +1143,15 @@ arguments()]]> - TestListener + - doAccept + - GroupFilterIterator + @@ -1159,11 +1159,11 @@ filter]]> - NameFilterIterator + - $filterMax - $filterMin + + filterMax)]]> @@ -1171,27 +1171,27 @@ - TestListenerAdapter + - $lastTestWasNotSuccessful + - RawCodeCoverageData::fromXdebugWithoutPathCoverage([]) - RawCodeCoverageData::fromXdebugWithoutPathCoverage([]) + + - RawCodeCoverageData::fromXdebugWithoutPathCoverage([]) - RawCodeCoverageData::fromXdebugWithoutPathCoverage([]) + + - cacheDirectory + - stop + @@ -1203,29 +1203,29 @@ - $setting[1] + - $sectionName - $sectionName + + - StandardTestSuiteLoader + - FileLoader::checkAndLoad($suiteClassFile) + - $left - $left - $left - $right - $right - $right + + + + + + cache !== null]]> @@ -1239,7 +1239,7 @@ - non-empty-string + @@ -1247,11 +1247,11 @@ - $parameters - array_merge(self::LONG_OPTIONS, $additionalLongOptions) + + - $unrecognizedOptions + - columns + - $printerClass + - StandardTestSuiteLoader::class + - ?TestSuiteLoader + - handleLoader - handleLoader - hasTestSuiteLoaderClass - hasTestSuiteLoaderFile - testSuiteLoaderClass - testSuiteLoaderFile + + + + + + newInstance($outputStream)]]> - argument - argument - atLeastVersion - bootstrap - cacheDirectory - defaultTestSuite - detect - extensionsDirectory - getTest - handleListSuites - handleListSuites - handleListTests - handleListTestsXml - includePath - iniSettings - mapToLegacyArray - printerClass - stop - testSuiteLoaderClass + + + + + + + + + + + + + + + + + + + getMessage(), $e->getCode(), @@ -1317,17 +1317,17 @@ $e->getCode(), $e, );]]> - unrecognizedOrderBy + - null|Printer|string + - $suite - $suite - $suite - $suite + + + + @@ -1336,24 +1336,24 @@ - $loaderFile - $printerFile + + - new static + - DefaultResultPrinter + - parent::__construct($out) - stop + + - $maxColumn - $numTestsWidth + + @@ -1364,37 +1364,37 @@ - new StandardTestSuiteLoader - new XdebugFilterScriptGenerator + + - TestSuiteLoader - TestSuiteLoader - TestSuiteLoader + + + - addListener - addListener - addListener - addListener - addListener - addListener - addListener - addListener - createTestListenerInstance - flushListeners + + + + + + + + + + loader === null]]> printer === null]]> - $e - $e - $e - $e - $e - $e + + + + + + - addFilter - addFilter - addFilter - addFilter - addFilter - detect + + + + + + - reorderTestsInSuite - run - run - run - stop - stop + + + + + + - $cacheLocation + - $loader + - $printer + printer instanceof CliTestDoxPrinter)]]> @@ -1449,27 +1449,27 @@ - $position + - $position + - $position + - $position + - legacyCodeCoverage + textContent]]> @@ -1511,12 +1511,12 @@ getAttribute('value')]]> - assert($directoryNode instanceof DOMElement) - assert($fileNode instanceof DOMElement) + + - !$verbatim - $includePathFile + + getBoolean($document->documentElement->getAttribute('colors'), false)]]> @@ -1530,87 +1530,57 @@ - - - createElement - - - - - createElement - - - - - createElement - - - - - createElement - - - - - createElement - - - - - createElement - - - removeChild + - removeChild - removeChild + + - $value + - value + - $position + - $position + - $value + - value + - $position + - $position + - hasTestSuiteLoaderClass - hasTestSuiteLoaderFile + + testSuiteLoaderClass]]> @@ -1621,10 +1591,10 @@ testSuiteLoaderFile]]> - $columns + - columns + bootstrap]]> @@ -1639,17 +1609,17 @@ - $position + - $position + - $position + @@ -1684,30 +1654,30 @@ * >]]> - throw new SkippedTestError; + - !preg_match_all(self::REGEX_DATA_PROVIDER, $docComment, $matches) + [A-Za-z_-]+)(?:[ \t]+(?P.*?))?[ \t]*\r?$/m', $docBlock, $matches)]]> - static function ($errorNumber, $errorString) + + }]]> - invokeIgnoringWarnings + @@ -1722,22 +1692,22 @@ - !$includePathFilename + - $prefix + - $variable + - $json + @@ -1745,7 +1715,7 @@ getName()]]> - JUnit + currentTestCase === null]]> @@ -1755,8 +1725,8 @@ testSuiteTimes]]> - Filter::getFilteredStacktrace($t) - parent::__construct($out) + + getMessage(), $e->getCode(), @@ -1769,35 +1739,35 @@ );]]> - null + - $currentTestCase + - empty($testOutput) + - getName - getName + + - $className + - TeamCity + - $actualString === null - $expectedString === null + + - $value + - Filter::getFilteredStacktrace($t) + getMessage(), $e->getCode(), @@ -1805,21 +1775,21 @@ );]]> - $flowId - $startedTestName - TeamCity - TeamCity + + + + flowId]]> - getName - getName - getName - getName - getName - getName + + + + + + @@ -1828,16 +1798,16 @@ getException($warnings[0])]]> - $exception + - $errfile - $errline - $errno - $errstr + + + + - Exception + @@ -1846,43 +1816,43 @@ getCodeCoverage()]]> - merge + - !$file - !$file - $file + + + - addToAssertionCount - setResult + + - is_array($envVar) + - $tempFile + - $_SERVER + tempFile = tempnam(sys_get_temp_dir(), 'PHPUnit'))]]> - [] + - WindowsPhpProcess + - $stream + stream]]> @@ -1891,42 +1861,42 @@ - $filter + - $pattern + - sanitizeVersionNumber + - forClassName - forMethod - forMethod - getName - requirements - requirements + + + + + + - $classShortcut - $hint + + - CliTestDoxPrinter + - self::SPINNER_ICONS[$id] - self::SPINNER_ICONS[$id] + + - \PHPUnit\Util\Filter::getFilteredStacktrace($t) - stop + + @@ -1937,36 +1907,36 @@ - $style + - CliTestDoxPrinter - CliTestDoxPrinter + + - $diff - $diff - $message - $message + + + + - HtmlResultPrinter + currentTestClassPrettified]]> - HtmlResultPrinter + - $value + - preg_replace($variables, $providedData, $annotation) + - is_string($value) + - empty($className) + - ResultPrinter + - parent::__construct($out) + - $testStatus + - TestDoxPrinter + - \PHPUnit\Util\Filter::getFilteredStacktrace($t) + - TestDoxPrinter - TestDoxPrinter + + - getName + - TextResultPrinter + - TextResultPrinter + - XmlResultPrinter + - parent::__construct($out) + getMessage(), $e->getCode(), @@ -2039,21 +2009,21 @@ - ensureOperatorIsValid + - $item + - new $className + importNode($element, true)]]> - xmlToVariable + - DOMElement + getAttribute('key')]]>