File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments