Skip to content

Commit 9ea6f0b

Browse files
Fix issue identified by Psalm
1 parent bc5f0c9 commit 9ea6f0b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.psalm/baseline.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,9 +1664,8 @@
16641664
<PropertyNotSetInConstructor occurrences="1">
16651665
<code>$printer</code>
16661666
</PropertyNotSetInConstructor>
1667-
<RedundantCondition occurrences="2">
1667+
<RedundantCondition occurrences="1">
16681668
<code>assert($this-&gt;printer instanceof CliTestDoxPrinter)</code>
1669-
<code>assert($arguments['configuration'] instanceof Configuration)</code>
16701669
</RedundantCondition>
16711670
<RedundantConditionGivenDocblockType occurrences="1">
16721671
<code>$this-&gt;printer !== null</code>

src/TextUI/TestRunner.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ public function run(TestSuite $suite, array $arguments = [], array $warnings = [
490490
}
491491

492492
if (isset($arguments['configurationObject'])) {
493-
assert($arguments['configurationObject'] instanceof Configuration);
494-
495493
$codeCoverageConfiguration = $arguments['configurationObject']->codeCoverage();
496494

497495
if ($codeCoverageConfiguration->hasNonEmptyListOfFilesToBeIncludedInCodeCoverageReport()) {

0 commit comments

Comments
 (0)