Skip to content

Commit b40553b

Browse files
committed
Fixed PHP 5.4 incompatibility in empty() call
1 parent fca8eff commit b40553b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Yandex/Allure/Adapter/AllureAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_Asser
101101
// Append comparison diff for errors of type ExpectationFailedException (and is subclasses)
102102
if (($e instanceof PHPUnit_Framework_ExpectationFailedException
103103
|| is_subclass_of($e, '\PHPUnit_Framework_ExpectationFailedException'))
104-
&& !empty($e->getComparisonFailure())
104+
&& $e->getComparisonFailure()
105105
) {
106106
$message .= $e->getComparisonFailure()->getDiff();
107107
}

0 commit comments

Comments
 (0)