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 3f4bef9

Browse files
Merge pull request #64 from janedbal/patch-1
XmlServiceMapFactory: minor error messages improvement
2 parents 18887de + 295a8a0 commit 3f4bef9

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 によって変換されたページ (->オリジナル) /