Skip to content

Commit bde07dc

Browse files
authored
Merge pull request #4 from php5friends/development
Remove "Exception" type declaration
2 parents cfa0a10 + 5b394a7 commit bde07dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Framework/TestFailure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public function getExceptionAsString()
7878
/**
7979
* Returns a description for an exception.
8080
*
81-
* @param Exception $e
81+
* @param \Exception|\Throwable $e
8282
*
8383
* @return string
8484
*
8585
* @since Method available since Release 3.2.0
8686
*/
87-
public static function exceptionToString(Exception $e)
87+
public static function exceptionToString($e)
8888
{
8989
if ($e instanceof PHPUnit_Framework_SelfDescribing) {
9090
$buffer = $e->toString();

src/Framework/TestResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ public function flushListeners()
189189
* Adds an error to the list of errors.
190190
*
191191
* @param PHPUnit_Framework_Test $test
192-
* @param Exception $e
192+
* @param \Exception|\Throwable $e
193193
* @param float $time
194194
*/
195-
public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)
195+
public function addError(PHPUnit_Framework_Test $test, $e, $time)
196196
{
197197
if ($e instanceof PHPUnit_Framework_RiskyTest) {
198198
$this->risky[] = new PHPUnit_Framework_TestFailure($test, $e);

0 commit comments

Comments
 (0)