10000 Merge branch '6.4' into 7.1 · symfony/symfony@e680c1c · GitHub
[go: up one dir, main page]

Skip to content

Commit e680c1c

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: silence warnings triggered when malformed XML is parsed pass the test name to the WebTestCase constructor
2 parents 614844a + 4e1f1b8 commit e680c1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ private function getRequestTester(): WebTestCase
388388

389389
private function getTester(KernelBrowser $client): WebTestCase
390390
{
391-
$tester = new class() extends WebTestCase {
391+
$tester = new class(method_exists($this, 'name') ? $this->name() : $this->getName()) extends WebTestCase {
392392
use WebTestAssertionsTrait {
393393
getClient as public;
394394
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function doSend(MessageInterface $message): SentMessage
7777
}
7878

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

0 commit comments

Comments
 (0)
0