Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Framework/TestFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public function getExceptionAsString()
/**
* Returns a description for an exception.
*
* @param Exception $e
* @param \Exception|\Throwable $e
*
* @return string
*
* @since Method available since Release 3.2.0
*/
public static function exceptionToString(Exception $e)
public static function exceptionToString($e)
{
if ($e instanceof PHPUnit_Framework_SelfDescribing) {
$buffer = $e->toString();
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/TestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ public function flushListeners()
* Adds an error to the list of errors.
*
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param \Exception|\Throwable $e
* @param float $time
*/
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
public function addError(PHPUnit_Framework_Test $test, $e, $time)
{
if ($e instanceof PHPUnit_Framework_RiskyTest) {
$this->risky[] = new PHPUnit_Framework_TestFailure($test, $e);
Expand Down