]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust to parent implementation 21302/head
authorJoas Schilling <coding@schilljs.com>
Mon, 8 Jun 2020 09:30:05 +0000 (11:30 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 8 Jun 2020 09:30:05 +0000 (11:30 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/Connector/Sabre/RequestTest/ExceptionPlugin.php

index 2b19227a35480c429367f263c2d71f4a61e663c9..7eef0f74343b8af0a709a43b3a6757a4d911c953 100644 (file)
@@ -26,11 +26,11 @@ namespace OCA\DAV\Tests\unit\Connector\Sabre\RequestTest;
 
 class ExceptionPlugin extends \OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin {
        /**
-        * @var \Exception[]
+        * @var \Throwable[]
         */
        protected $exceptions = [];
 
-       public function logException(\Exception $ex) {
+       public function logException(\Throwable $ex) {
                $exceptionClass = get_class($ex);
                if (!isset($this->nonFatalExceptions[$exceptionClass])) {
                        $this->exceptions[] = $ex;
@@ -38,7 +38,7 @@ class ExceptionPlugin extends \OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin {
        }
 
        /**
-        * @return \Exception[]
+        * @return \Throwable[]
         */
        public function getExceptions() {
                return $this->exceptions;