8000 bug #58525 [Notifier] silence warnings triggered when malformed XML i… · symfony/symfony@a2991ca · GitHub
[go: up one dir, main page]

Skip to content

Commit a2991ca

Browse files
committed
bug #58525 [Notifier] silence warnings triggered when malformed XML is parsed (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Notifier] silence warnings triggered when malformed XML is parsed | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT The constructor of the `SimpleXMLElement` class issues a warning if the passed data is not valid. Commits ------- aa3c91b silence warnings triggered when malformed XML is parsed
2 parents e61a014 + aa3c91b commit a2991ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Notifier/Bridge/KazInfoTeh/KazInfoTehTransport.php

Lines changed: 1 addition & 1 deletion
6BC6
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function doSend(MessageInterface $message): SentMessage
8080
}
8181

8282
try {
83-
$content = new \SimpleXMLElement($response->getContent(false));
83+
$content = @new \SimpleXMLElement($response->getContent(false));
8484
} catch (\Exception $e) {
8585
throw new TransportException('Unable to send the SMS: "Couldn\'t read response".', $response, previous: $e);
8686
}

0 commit comments

Comments
 (0)
0