another bulk of composer updates
(cherry picked from commit 6685381fd8db507493c3d7c1793f8c05c681bbce)
This commit is contained in:
35
vendor/sabre/xml/lib/LibXMLException.php
vendored
35
vendor/sabre/xml/lib/LibXMLException.php
vendored
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Sabre\Xml;
|
||||
|
||||
use
|
||||
LibXMLError;
|
||||
use LibXMLError;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* This exception is thrown when the Readers runs into a parsing error.
|
||||
@@ -14,12 +16,12 @@ use
|
||||
* @author Evert Pot (http://evertpot.com/)
|
||||
* @license http://sabre.io/license/ Modified BSD License
|
||||
*/
|
||||
class LibXMLException extends ParseException {
|
||||
|
||||
class LibXMLException extends ParseException
|
||||
{
|
||||
/**
|
||||
* The error list.
|
||||
*
|
||||
* @var LibXMLError[]
|
||||
* @var []LibXMLError
|
||||
*/
|
||||
protected $errors;
|
||||
|
||||
@@ -28,26 +30,21 @@ class LibXMLException extends ParseException {
|
||||
*
|
||||
* You should pass a list of LibXMLError objects in its constructor.
|
||||
*
|
||||
* @param LibXMLError[] $errors
|
||||
* @param int $code
|
||||
* @param Exception $previousException
|
||||
* @param []LibXMLError $errors
|
||||
* @param int $code
|
||||
* @param Throwable $previousException
|
||||
*/
|
||||
function __construct(array $errors, $code = null, Exception $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);
|
||||
|
||||
parent::__construct($errors[0]->message.' on line '.$errors[0]->line.', column '.$errors[0]->column, $code, $previousException);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the LibXML errors
|
||||
*
|
||||
* @return void
|
||||
* Returns the LibXML errors.
|
||||
*/
|
||||
function getErrors() {
|
||||
|
||||
public function getErrors(): array
|
||||
{
|
||||
return $this->errors;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user