diff options
Diffstat (limited to 'vendor/sabre/xml/lib/LibXMLException.php')
-rw-r--r-- | vendor/sabre/xml/lib/LibXMLException.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/sabre/xml/lib/LibXMLException.php b/vendor/sabre/xml/lib/LibXMLException.php index fb074f97d..993f95fd9 100644 --- a/vendor/sabre/xml/lib/LibXMLException.php +++ b/vendor/sabre/xml/lib/LibXMLException.php @@ -5,7 +5,6 @@ declare(strict_types=1); namespace Sabre\Xml; use LibXMLError; -use Throwable; /** * This exception is thrown when the Reader runs into a parsing error. @@ -30,10 +29,9 @@ class LibXMLException extends ParseException * * You should pass a list of LibXMLError objects in its constructor. * - * @param LibXMLError[] $errors - * @param Throwable $previousException + * @param \LibXMLError[] $errors */ - public function __construct(array $errors, int $code = 0, Throwable $previousException = null) + public function __construct(array $errors, int $code = 0, ?\Throwable $previousException = null) { $this->errors = $errors; parent::__construct($errors[0]->message.' on line '.$errors[0]->line.', column '.$errors[0]->column, $code, $previousException); |