@@ -109,10 +109,10 @@ class JSON extends \PHPUnit\Util\Printer implements \PHPUnit\Framework\TestListe
109109 * An error occurred.
110110 *
111111 * @param \PHPUnit\Framework\Test $test
112- * @param Exception $e
112+ * @param \ Exception|\Throwable $e
113113 * @param float $time
114114 */
115- public function addError (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
115+ public function addError (\PHPUnit \Framework \Test $ test , $ e , $ time )
116116 {
117117 $ this ->writeCase (
118118 'error ' ,
@@ -169,10 +169,10 @@ public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Ass
169169 * Incomplete test.
170170 *
171171 * @param \PHPUnit\Framework\Test $test
172- * @param Exception $e
172+ * @param \ Exception|\Throwable $e
173173 * @param float $time
174174 */
175- public function addIncompleteTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
175+ public function addIncompleteTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
176176 {
177177 $ this ->writeCase (
178178 'error ' ,
@@ -189,10 +189,10 @@ public function addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e,
189189 * Risky test.
190190 *
191191 * @param \PHPUnit\Framework\Test $test
192- * @param Exception $e
192+ * @param \ Exception|\Throwable $e
193193 * @param float $time
194194 */
195- public function addRiskyTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
195+ public function addRiskyTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
196196 {
197197 $ this ->writeCase (
198198 'error ' ,
@@ -209,10 +209,10 @@ public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time
209209 * Skipped test.
210210 *
211211 * @param \PHPUnit\Framework\Test $test
212- * @param Exception $e
212+ * @param \ Exception|\Throwable $e
213213 * @param float $time
214214 */
215- public function addSkippedTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
215+ public function addSkippedTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
216216 {
217217 $ this ->writeCase (
218218 'error ' ,
@@ -394,10 +394,10 @@ public function __construct($out = null)
394394 * An error occurred.
395395 *
396396 * @param \PHPUnit\Framework\Test $test
397- * @param Exception $e
397+ * @param \ Exception|\Throwable $e
398398 * @param float $time
399399 */
400- public function addError (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
400+ public function addError (\PHPUnit \Framework \Test $ test , $ e , $ time )
401401 {
402402 $ this ->writeNotOk ($ test , 'Error ' );
403403 }
@@ -460,10 +460,10 @@ public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Ass
460460 * Incomplete test.
461461 *
462462 * @param \PHPUnit\Framework\Test $test
463- * @param \Exception $e
463+ * @param \Exception|\Throwable $e
464464 * @param float $time
465465 */
466- public function addIncompleteTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
466+ public function addIncompleteTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
467467 {
468468 $ this ->writeNotOk ($ test , '' , 'TODO Incomplete Test ' );
469469 }
@@ -472,10 +472,10 @@ public function addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e,
472472 * Risky test.
473473 *
474474 * @param \PHPUnit\Framework\Test $test
475- * @param Exception $e
475+ * @param \ Exception|\Throwable $e
476476 * @param float $time
477477 */
478- public function addRiskyTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
478+ public function addRiskyTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
479479 {
480480 $ this ->write (
481481 sprintf (
@@ -492,10 +492,10 @@ public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time
492492 * Skipped test.
493493 *
494494 * @param \PHPUnit\Framework\Test $test
495- * @param Exception $e
495+ * @param \ Exception|\Throwable $e
496496 * @param float $time
497497 */
498- public function addSkippedTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
498+ public function addSkippedTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
499499 {
500500 $ this ->write (
501501 sprintf (
0 commit comments