Browse Source

Merge pull request #13098 from cakephp/stub-error

Allow throwable in stub renderer
ADmad 7 years ago
parent
commit
e38ffee4b8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/TestSuite/Stub/TestExceptionRenderer.php

+ 4 - 4
src/TestSuite/Stub/TestExceptionRenderer.php

@@ -15,7 +15,7 @@ declare(strict_types=1);
  */
 namespace Cake\TestSuite\Stub;
 
-use Exception;
+use Throwable;
 
 /**
  * Test Exception Renderer.
@@ -32,11 +32,11 @@ class TestExceptionRenderer
     /**
      * Simply rethrow the given exception
      *
-     * @param \Exception $exception Exception.
+     * @param \Throwable $exception Exception.
      * @return void
-     * @throws \Exception $exception Rethrows the passed exception.
+     * @throws \Throwable $exception Rethrows the passed exception.
      */
-    public function __construct(Exception $exception)
+    public function __construct(Throwable $exception)
     {
         throw $exception;
     }