Adjust to parent implementation
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
81f83d3c1f
commit
03c05d60c0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue