Merge pull request #21302 from nextcloud/techdebt/noid/adjust-to-parent-implementation

Adjust to parent implementation
This commit is contained in:
Christoph Wurst 2020-06-09 08:52:40 +02:00 committed by GitHub
commit d0d6cb6ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View 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;