@@ -109,10 +109,10 @@ class JSON extends \PHPUnit\Util\Printer implements \PHPUnit\Framework\TestListe
109
109
* An error occurred.
110
110
*
111
111
* @param \PHPUnit\Framework\Test $test
112
- * @param Exception $e
112
+ * @param \ Exception|\Throwable $e
113
113
* @param float $time
114
114
*/
115
- public function addError (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
115
+ public function addError (\PHPUnit \Framework \Test $ test , $ e , $ time )
116
116
{
117
117
$ this ->writeCase (
118
118
'error ' ,
@@ -169,10 +169,10 @@ public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Ass
169
169
* Incomplete test.
170
170
*
171
171
* @param \PHPUnit\Framework\Test $test
172
- * @param Exception $e
172
+ * @param \ Exception|\Throwable $e
173
173
* @param float $time
174
174
*/
175
- public function addIncompleteTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
175
+ public function addIncompleteTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
176
176
{
177
177
$ this ->writeCase (
178
178
'error ' ,
@@ -189,10 +189,10 @@ public function addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e,
189
189
* Risky test.
190
190
*
191
191
* @param \PHPUnit\Framework\Test $test
192
- * @param Exception $e
192
+ * @param \ Exception|\Throwable $e
193
193
* @param float $time
194
194
*/
195
- public function addRiskyTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
195
+ public function addRiskyTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
196
196
{
197
197
$ this ->writeCase (
198
198
'error ' ,
@@ -209,10 +209,10 @@ public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time
209
209
* Skipped test.
210
210
*
211
211
* @param \PHPUnit\Framework\Test $test
212
- * @param Exception $e
212
+ * @param \ Exception|\Throwable $e
213
213
* @param float $time
214
214
*/
215
- public function addSkippedTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
215
+ public function addSkippedTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
216
216
{
217
217
$ this ->writeCase (
218
218
'error ' ,
@@ -394,10 +394,10 @@ public function __construct($out = null)
394
394
* An error occurred.
395
395
*
396
396
* @param \PHPUnit\Framework\Test $test
397
- * @param Exception $e
397
+ * @param \ Exception|\Throwable $e
398
398
* @param float $time
399
399
*/
400
- public function addError (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
400
+ public function addError (\PHPUnit \Framework \Test $ test , $ e , $ time )
401
401
{
402
402
$ this ->writeNotOk ($ test , 'Error ' );
403
403
}
@@ -460,10 +460,10 @@ public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Ass
460
460
* Incomplete test.
461
461
*
462
462
* @param \PHPUnit\Framework\Test $test
463
- * @param \Exception $e
463
+ * @param \Exception|\Throwable $e
464
464
* @param float $time
465
465
*/
466
- public function addIncompleteTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
466
+ public function addIncompleteTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
467
467
{
468
468
$ this ->writeNotOk ($ test , '' , 'TODO Incomplete Test ' );
469
469
}
@@ -472,10 +472,10 @@ public function addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e,
472
472
* Risky test.
473
473
*
474
474
* @param \PHPUnit\Framework\Test $test
475
- * @param Exception $e
475
+ * @param \ Exception|\Throwable $e
476
476
* @param float $time
477
477
*/
478
- public function addRiskyTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
478
+ public function addRiskyTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
479
479
{
480
480
$ this ->write (
481
481
sprintf (
@@ -492,10 +492,10 @@ public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time
492
492
* Skipped test.
493
493
*
494
494
* @param \PHPUnit\Framework\Test $test
495
- * @param Exception $e
495
+ * @param \ Exception|\Throwable $e
496
496
* @param float $time
497
497
*/
498
- public function addSkippedTest (\PHPUnit \Framework \Test $ test , \ Exception $ e , $ time )
498
+ public function addSkippedTest (\PHPUnit \Framework \Test $ test , $ e , $ time )
499
499
{
500
500
$ this ->write (
501
501
sprintf (
0 commit comments