8000 [Config] extracted the xml parsing from XmlUtils::loadFile into XmlUt… by Basster · Pull Request #23482 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Config] extracted the xml parsing from XmlUtils::loadFile into XmlUt… #23482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Prev Previous commit
Next Next commit
code style fixes.
  • Loading branch information
Basster committed Jul 12, 2017
commit 450348a206ff8752965bba9c3795eec1e3756811
3 changes: 1 addition & 2 deletions src/Symfony/Component/Config/Util/XmlUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ public static function loadFile($file, $schemaOrCallable = null)

try {
return static::load($content, $schemaOrCallable);
}
catch (\InvalidArgumentException $ex) {
} catch (\InvalidArgumentException $ex) {
throw new \InvalidArgumentException(
str_replace(self::XML_IS_NOT_VALID_MESSAGE, sprintf('The XML file "%s" is not valid.', $file), $ex->getMessage()),
$ex->getCode(),
Expand Down
0