mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 21:18:46 +02:00
N°8017 - Security - dependabot - Symfony's VarDumper vulnerable to un… (#731)
Upgrade all Symfony components to last security fix (~6.4.0)
This commit is contained in:
@@ -42,7 +42,7 @@ class XmlUtils
|
||||
* @throws InvalidXmlException When parsing of XML with schema or callable produces any errors unrelated to the XML parsing itself
|
||||
* @throws \RuntimeException When DOM extension is missing
|
||||
*/
|
||||
public static function parse(string $content, string|callable $schemaOrCallable = null): \DOMDocument
|
||||
public static function parse(string $content, string|callable|null $schemaOrCallable = null): \DOMDocument
|
||||
{
|
||||
if (!\extension_loaded('dom')) {
|
||||
throw new \LogicException('Extension DOM is required.');
|
||||
@@ -112,7 +112,7 @@ class XmlUtils
|
||||
* @throws XmlParsingException When XML parsing returns any errors
|
||||
* @throws \RuntimeException When DOM extension is missing
|
||||
*/
|
||||
public static function loadFile(string $file, string|callable $schemaOrCallable = null): \DOMDocument
|
||||
public static function loadFile(string $file, string|callable|null $schemaOrCallable = null): \DOMDocument
|
||||
{
|
||||
if (!is_file($file)) {
|
||||
throw new \InvalidArgumentException(sprintf('Resource "%s" is not a file.', $file));
|
||||
|
||||
Reference in New Issue
Block a user