@@ -388,10 +388,10 @@ public function printWaitPrompt()
388388 * An error occurred.
389389 *
390390 * @param PHPUnit_Framework_Test $test
391- * @param Exception $e
391+ * @param \ Exception|\Throwable $e
392392 * @param float $time
393393 */
394- public function addError (PHPUnit_Framework_Test $ test , Exception $ e , $ time )
394+ public function addError (PHPUnit_Framework_Test $ test , $ e , $ time )
395395 {
396396 $ this ->writeProgressWithColor ('fg-red, bold ' , 'E ' );
397397 $ this ->lastTestFailed = true ;
@@ -414,10 +414,10 @@ public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_Asser
414414 * Incomplete test.
415415 *
416416 * @param PHPUnit_Framework_Test $test
417- * @param Exception $e
417+ * @param \ Exception|\Throwable $e
418418 * @param float $time
419419 */
420- public function addIncompleteTest (PHPUnit_Framework_Test $ test , Exception $ e , $ time )
420+ public function addIncompleteTest (PHPUnit_Framework_Test $ test , $ e , $ time )
421421 {
422422 $ this ->writeProgressWithColor ('fg-yellow, bold ' , 'I ' );
423423 $ this ->lastTestFailed = true ;
@@ -427,12 +427,12 @@ public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $t
427427 * Risky test.
428428 *
429429 * @param PHPUnit_Framework_Test $test
430- * @param Exception $e
430+ * @param \ Exception|\Throwable $e
431431 * @param float $time
432432 *
433433 * @since Method available since Release 4.0.0
434434 */
435- public function addRiskyTest (PHPUnit_Framework_Test $ test , Exception $ e , $ time )
435+ public function addRiskyTest (PHPUnit_Framework_Test $ test , $ e , $ time )
436436 {
437437 $ this ->writeProgressWithColor ('fg-yellow, bold ' , 'R ' );
438438 $ this ->lastTestFailed = true ;
@@ -442,12 +442,12 @@ public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time)
442442 * Skipped test.
443443 *
444444 * @param PHPUnit_Framework_Test $test
445- * @param Exception $e
445+ * @param \ Exception|\Throwable $e
446446 * @param float $time
447447 *
448448 * @since Method available since Release 3.0.0
449449 */
450- public function addSkippedTest (PHPUnit_Framework_Test $ test , Exception $ e , $ time )
450+ public function addSkippedTest (PHPUnit_Framework_Test $ test , $ e , $ time )
451451 {
452452 $ this ->writeProgressWithColor ('fg-cyan, bold ' , 'S ' );
453453 $ this ->lastTestFailed = true ;
0 commit comments