Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 295a8a0

Browse files
XmlServiceMapFactory: minor error messages improvement
1 parent b34aef6 commit 295a8a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Symfony/XmlServiceMapFactory.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function create(): ServiceMap
2626

2727
$fileContents = file_get_contents($this->containerXml);
2828
if ($fileContents === false) {
29-
throw new XmlContainerNotExistsException(sprintf('Container %s does not exist or cannot be parsed', $this->containerXml));
29+
throw new XmlContainerNotExistsException(sprintf('Container %s does not exist', $this->containerXml));
3030
}
3131

3232
$xml = @simplexml_load_string($fileContents);
3333
if ($xml === false) {
34-
throw new XmlContainerNotExistsException(sprintf('Container %s does not exist or cannot be parsed', $this->containerXml));
34+
throw new XmlContainerNotExistsException(sprintf('Container %s cannot be parsed', $this->containerXml));
3535
}
3636

3737
/** @var \PHPStan\Symfony\Service[] $services */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /