src/Visitor/Xml/XmlDeserializationVisitor.php 1 location
|
@@ 68-77 (lines=10) @@
|
65 |
|
if ($document === false) { |
66 |
|
$errors = []; |
67 |
|
|
68 |
|
foreach (libxml_get_errors() as $error) { |
69 |
|
$errors[] = sprintf('[%s %s] %s (in %s - line %d, column %d)', |
70 |
|
$error->level === LIBXML_ERR_WARNING ? 'WARNING' : 'ERROR', |
71 |
|
$error->code, |
72 |
|
trim($error->message), |
73 |
|
$error->file ?: 'n/a', |
74 |
|
$error->line, |
75 |
|
$error->column |
76 |
|
); |
77 |
|
} |
78 |
|
|
79 |
|
$this->setLibXmlState($internalErrors, $disableEntityLoader); |
80 |
|
|
src/Mapping/Loader/XmlClassMetadataLoader.php 1 location
|
@@ 215-224 (lines=10) @@
|
212 |
|
{ |
213 |
|
$errors = []; |
214 |
|
|
215 |
|
foreach (libxml_get_errors() as $error) { |
216 |
|
$errors[] = sprintf('[%s %s] %s (in %s - line %d, column %d)', |
217 |
|
$error->level === LIBXML_ERR_WARNING ? 'WARNING' : 'ERROR', |
218 |
|
$error->code, |
219 |
|
trim($error->message), |
220 |
|
$file, |
221 |
|
$error->line, |
222 |
|
$error->column |
223 |
|
); |
224 |
|
} |
225 |
|
|
226 |
|
$this->setLibXmlState($internalErrors, $disableEntities); |
227 |
|
|