Skip to content

Commit

Permalink
Merge pull request #1002 from faissaloux/remove-double-plus
Browse files Browse the repository at this point in the history
Remove double plus
  • Loading branch information
nunomaduro authored Nov 8, 2023
2 parents f235d84 + 1734094 commit bd6b166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public static function exitCode(Configuration $configuration, TestResult $result
$returnCode = self::FAILURE_EXIT;
}

$warnings = $result->numberOfTestsWithTestTriggeredPhpunitWarningEvents() +
+count($result->warnings())
$warnings = $result->numberOfTestsWithTestTriggeredPhpunitWarningEvents()
+ count($result->warnings())
+ count($result->phpWarnings());

if ($configuration->failOnWarning() && $warnings > 0) {
Expand Down

0 comments on commit bd6b166

Please sign in to comment.