diff --git a/src/TextUI/TestRunner.php b/src/TextUI/TestRunner.php index b28e4197d17..10058a61809 100644 --- a/src/TextUI/TestRunner.php +++ b/src/TextUI/TestRunner.php @@ -541,11 +541,9 @@ public function run(TestSuite $suite, array $arguments = [], array $warnings = [ $arguments['strictCoverage'] ); - if (isset($arguments['forceCoversAnnotation'])) { - $codeCoverage->setForceCoversAnnotation( - $arguments['forceCoversAnnotation'] - ); - } + $codeCoverage->setForceCoversAnnotation( + $arguments['forceCoversAnnotation'] + ); if (isset($arguments['ignoreDeprecatedCodeUnitsFromCodeCoverage'])) { $codeCoverage->setIgnoreDeprecatedCode(