Skip to content

Commit

Permalink
Update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 5, 2020
1 parent 4f86739 commit 57dd96e
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<phar name="php-cs-fixer" version="^2.16" installed="2.16.7" location="./tools/php-cs-fixer" copy="true"/>
<phar name="phpdox" version="^0.12" installed="0.12.0" location="./tools/phpdox" copy="true"/>
<phar name="phploc" version="^4.0" installed="4.0.1" location="./tools/phploc" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.2.1" location="./tools/psalm" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.3.1" location="./tools/psalm" copy="true"/>
<phar name="humbug/php-scoper" version="^0.13.9" installed="0.13.10" location="./tools/php-scoper" copy="true"/>
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
<phar name="composer" version="^2.0.3" installed="2.0.7" location="./tools/composer" copy="true"/>
<phar name="composer" version="^2.0.3" installed="2.0.8" location="./tools/composer" copy="true"/>
</phive>
115 changes: 109 additions & 6 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.2.1@ea9cb72143b77e7520c52fa37290bd8d8bc88fd9">
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
<file src="src/Framework/Assert.php">
<ArgumentTypeCoercion occurrences="2">
<code>$actualElement-&gt;childNodes-&gt;item($i)</code>
Expand Down Expand Up @@ -426,6 +426,9 @@
<MoreSpecificImplementedParamType occurrences="1">
<code>$other</code>
</MoreSpecificImplementedParamType>
<RedundantCast occurrences="1">
<code>(string) $other-&gt;getMessage()</code>
</RedundantCast>
</file>
<file src="src/Framework/Constraint/ExceptionMessageRegularExpression.php">
<MoreSpecificImplementedParamType occurrences="1">
Expand Down Expand Up @@ -660,9 +663,6 @@
<code>throw InvalidArgumentException::create(2, 'array');</code>
<code>throw new RuntimeException($exception-&gt;getMessage());</code>
</MissingThrowsDocblock>
<PossiblyFalseArgument occurrences="1">
<code>\strpos($args[$i], '$')</code>
</PossiblyFalseArgument>
</file>
<file src="src/Framework/MockObject/Invocation.php">
<MissingClosureReturnType occurrences="1">
Expand Down Expand Up @@ -776,6 +776,12 @@
<code>$invocation</code>
<code>$parameterVerificationResult</code>
</PropertyNotSetInConstructor>
<RedundantCastGivenDocblockType occurrences="1">
<code>(bool) $this-&gt;parameterVerificationResult</code>
</RedundantCastGivenDocblockType>
<RedundantPropertyInitializationCheck occurrences="1">
<code>isset($this-&gt;parameterVerificationResult)</code>
</RedundantPropertyInitializationCheck>
</file>
<file src="src/Framework/MockObject/Stub/ConsecutiveCalls.php">
<MissingReturnType occurrences="1">
Expand Down Expand Up @@ -925,6 +931,9 @@
<RawObjectIteration occurrences="1">
<code>$methodProphecies</code>
</RawObjectIteration>
<RedundantCastGivenDocblockType occurrences="1">
<code>(bool) $this-&gt;backupStaticAttributes</code>
</RedundantCastGivenDocblockType>
<RedundantCondition occurrences="1">
<code>$this instanceof PhptTestCase</code>
</RedundantCondition>
Expand Down Expand Up @@ -1036,6 +1045,9 @@
<code>$filterMax</code>
<code>$filterMin</code>
</PropertyNotSetInConstructor>
<RedundantPropertyInitializationCheck occurrences="1">
<code>$accepted &amp;&amp; isset($this-&gt;filterMax)</code>
</RedundantPropertyInitializationCheck>
</file>
<file src="src/Runner/Hook/TestListenerAdapter.php">
<DeprecatedInterface occurrences="1">
Expand Down Expand Up @@ -1098,7 +1110,6 @@
<code>$suite</code>
<code>$suite</code>
</ArgumentTypeCoercion>
<InvalidCatch occurrences="1"/>
<InvalidDocblock occurrences="1">
<code>private $warnings = [];</code>
</InvalidDocblock>
Expand Down Expand Up @@ -1205,10 +1216,12 @@
<UnsafeInstantiation occurrences="1"/>
</file>
<file src="src/Util/Annotation/DocBlock.php">
<InvalidCatch occurrences="1"/>
<MissingThrowsDocblock occurrences="1">
<code>throw new SkippedTestError;</code>
</MissingThrowsDocblock>
<RedundantCast occurrences="1">
<code>(string) $matches['value'][$i]</code>
</RedundantCast>
</file>
<file src="src/Util/Blacklist.php">
<DocblockTypeContradiction occurrences="1">
Expand All @@ -1235,6 +1248,84 @@
<code>getAttribute</code>
<code>getAttribute</code>
</PossiblyNullReference>
<RedundantCast occurrences="80">
<code>(string) $argument-&gt;textContent</code>
<code>(string) $const-&gt;getAttribute('name')</code>
<code>(string) $const-&gt;getAttribute('value')</code>
<code>(string) $directoryNode-&gt;getAttribute('group')</code>
<code>(string) $directoryNode-&gt;getAttribute('prefix')</code>
<code>(string) $directoryNode-&gt;getAttribute('prefix')</code>
<code>(string) $directoryNode-&gt;getAttribute('suffix')</code>
<code>(string) $directoryNode-&gt;getAttribute('suffix')</code>
<code>(string) $directoryNode-&gt;textContent</code>
<code>(string) $directoryNode-&gt;textContent</code>
<code>(string) $element-&gt;getAttribute('class')</code>
<code>(string) $element-&gt;getAttribute('file')</code>
<code>(string) $excludeNode-&gt;textContent</code>
<code>(string) $file-&gt;textContent</code>
<code>(string) $fileNode-&gt;textContent</code>
<code>(string) $group-&gt;textContent</code>
<code>(string) $group-&gt;textContent</code>
<code>(string) $includePath-&gt;textContent</code>
<code>(string) $ini-&gt;getAttribute('name')</code>
<code>(string) $ini-&gt;getAttribute('value')</code>
<code>(string) $log-&gt;getAttribute('highLowerBound')</code>
<code>(string) $log-&gt;getAttribute('lowUpperBound')</code>
<code>(string) $log-&gt;getAttribute('showOnlySummary')</code>
<code>(string) $log-&gt;getAttribute('showUncoveredFiles')</code>
<code>(string) $log-&gt;getAttribute('target')</code>
<code>(string) $log-&gt;getAttribute('threshold')</code>
<code>(string) $log-&gt;getAttribute('type')</code>
<code>(string) $node-&gt;getAttribute('phpVersion')</code>
<code>(string) $node-&gt;getAttribute('phpVersionOperator')</code>
<code>(string) $root-&gt;getAttribute('backupGlobals')</code>
<code>(string) $root-&gt;getAttribute('backupStaticAttributes')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutChangesToGlobalState')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutCoversAnnotation')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutOutputDuringTests')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutResourceUsageDuringSmallTests')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutTestsThatDoNotTestAnything')</code>
<code>(string) $root-&gt;getAttribute('beStrictAboutTodoAnnotatedTests')</code>
<code>(string) $root-&gt;getAttribute('bootstrap')</code>
<code>(string) $root-&gt;getAttribute('cacheResult')</code>
<code>(string) $root-&gt;getAttribute('cacheResultFile')</code>
<code>(string) $root-&gt;getAttribute('cacheTokens')</code>
<code>(string) $root-&gt;getAttribute('columns')</code>
<code>(string) $root-&gt;getAttribute('convertDeprecationsToExceptions')</code>
<code>(string) $root-&gt;getAttribute('convertErrorsToExceptions')</code>
<code>(string) $root-&gt;getAttribute('convertNoticesToExceptions')</code>
<code>(string) $root-&gt;getAttribute('convertWarningsToExceptions')</code>
<code>(string) $root-&gt;getAttribute('defaultTimeLimit')</code>
<code>(string) $root-&gt;getAttribute('disableCodeCoverageIgnore')</code>
<code>(string) $root-&gt;getAttribute('enforceTimeLimit')</code>
<code>(string) $root-&gt;getAttribute('failOnRisky')</code>
<code>(string) $root-&gt;getAttribute('failOnWarning')</code>
<code>(string) $root-&gt;getAttribute('forceCoversAnnotation')</code>
<code>(string) $root-&gt;getAttribute('ignoreDeprecatedCodeUnitsFromCodeCoverage')</code>
<code>(string) $root-&gt;getAttribute('noInteraction')</code>
<code>(string) $root-&gt;getAttribute('printerFile')</code>
<code>(string) $root-&gt;getAttribute('processIsolation')</code>
<code>(string) $root-&gt;getAttribute('registerMockObjectsFromTestArgumentsRecursively')</code>
<code>(string) $root-&gt;getAttribute('resolveDependencies')</code>
<code>(string) $root-&gt;getAttribute('reverseDefectList')</code>
<code>(string) $root-&gt;getAttribute('stderr')</code>
<code>(string) $root-&gt;getAttribute('stopOnDefect')</code>
<code>(string) $root-&gt;getAttribute('stopOnError')</code>
<code>(string) $root-&gt;getAttribute('stopOnFailure')</code>
<code>(string) $root-&gt;getAttribute('stopOnIncomplete')</code>
<code>(string) $root-&gt;getAttribute('stopOnRisky')</code>
<code>(string) $root-&gt;getAttribute('stopOnSkipped')</code>
<code>(string) $root-&gt;getAttribute('stopOnWarning')</code>
<code>(string) $root-&gt;getAttribute('testSuiteLoaderFile')</code>
<code>(string) $root-&gt;getAttribute('testdox')</code>
<code>(string) $root-&gt;getAttribute('timeoutForLargeTests')</code>
<code>(string) $root-&gt;getAttribute('timeoutForMediumTests')</code>
<code>(string) $root-&gt;getAttribute('timeoutForSmallTests')</code>
<code>(string) $root-&gt;getAttribute('verbose')</code>
<code>(string) $testSuiteNode-&gt;getAttribute('name')</code>
<code>(string) $var-&gt;getAttribute('name')</code>
<code>(string) $var-&gt;getAttribute('value')</code>
</RedundantCast>
<RedundantConditionGivenDocblockType occurrences="2">
<code>\assert($directoryNode instanceof DOMElement)</code>
<code>\assert($fileNode instanceof DOMElement)</code>
Expand Down Expand Up @@ -1414,6 +1505,12 @@
<PropertyNotSetInConstructor occurrences="1">
<code>$tempFile</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="1">
<code>$_SERVER</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>[]</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Util/PHP/WindowsPhpProcess.php">
<PropertyNotSetInConstructor occurrences="1">
Expand Down Expand Up @@ -1471,6 +1568,9 @@
<code>$prefix['start']</code>
<code>$prefix['trace']</code>
</PossiblyInvalidArrayOffset>
<PossiblyUndefinedArrayOffset occurrences="1">
<code>self::STATUS_STYLES[$result['status']]['message']</code>
</PossiblyUndefinedArrayOffset>
<PropertyNotSetInConstructor occurrences="4">
<code>CliTestDoxPrinter</code>
<code>CliTestDoxPrinter</code>
Expand Down Expand Up @@ -1592,6 +1692,9 @@
<MoreSpecificReturnType occurrences="1">
<code>DOMElement</code>
</MoreSpecificReturnType>
<RedundantCast occurrences="1">
<code>(string) $entry-&gt;getAttribute('key')</code>
</RedundantCast>
</file>
<file src="src/Util/XmlTestListRenderer.php">
<ArgumentTypeCoercion occurrences="1">
Expand Down
Binary file modified tools/composer
Binary file not shown.
Binary file modified tools/psalm
Binary file not shown.

0 comments on commit 57dd96e

Please sign in to comment.