8000 silence warnings triggered when malformed XML is parsed · symfony/symfony@aa3c91b · GitHub
[go: up one dir, main page]

Skip to content

Commit aa3c91b

Browse files
committed
silence warnings triggered when malformed XML is parsed
The constructor of the SimpleXMLElement class issues a warning if the passed data is not valid.
1 parent 7b4ec02 commit aa3c91b

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