Skip to content

Commit 9a467e7

Browse files
committed
[Notifier] fix PR checks
1 parent 85520f2 commit 9a467e7

File tree

6 files changed

+42
-38
lines changed

6 files changed

+42
-38
lines changed

src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function doSend(MessageInterface $message): SentMessage
5757

5858
$sender = $message->getFrom() ?: $this->sender;
5959

60-
$response = $this->client->request('POST', 'https://' . $this->getEndpoint() . '/v3/transactionalSMS/sms', [
60+
$response = $this->client->request('POST', 'https://'. $this->getEndpoint(). '/v3/transactionalSMS/sms', [
6161
'json' => [
6262
'sender' => $sender,
6363
'recipient' => $message->getPhone(),
@@ -77,12 +77,12 @@ protected function doSend(MessageInterface $message): SentMessage
7777
if (201 !== $statusCode) {
7878
$error = $response->toArray(false);
7979

80-
throw new TransportException('Unable to send the SMS: ' . $error['message'], $response);
80+
throw new TransportException('Unable to send the SMS: '. $error['message'], $response);
8181
}
8282

8383
$success = $response->toArray(false);
8484

85-
$sentMessage = new SentMessage($message, (string)$this);
85+
$sentMessage = new SentMessage($message, (string) $this);
8686
$sentMessage->setMessageId($success['messageId']);
8787

8888
return $sentMessage;

src/Symfony/Component/Notifier/Bridge/Brevo/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022-present Fabien Potencier
1+
Copyright (c) 2023-present Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

src/Symfony/Component/Notifier/Bridge/Brevo/Tests/BrevoTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testSendWithErrorResponseThrowsTransportException()
5454
->method('getContent')
5555
->willReturn(json_encode(['code' => 400, 'message' => 'bad request']));
5656

57-
$client = new MockHttpClient(static fn(): ResponseInterface => $response);
57+
$client = new MockHttpClient(static fn (): ResponseInterface => $response);
5858

5959
$transport = self::createTransport($client);
6060

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
{
2-
"name": "symfony/brevo-notifier",
3-
"type": "symfony-notifier-bridge",
4-
"description": "Symfony Brevo Notifier Bridge",
5-
"keywords": [
6-
"brevo",
7-
"notifier"
8-
],
9-
"homepage": "https://symfony.com",
10-
"license": "MIT",
11-
"authors": [
12-
{
13-
"name": "Pierre Tanguy",
14-
"homepage": "https://github.com/petanguy"
2+
"name": "symfony/brevo-notifier",
3+
"type": "symfony-notifier-bridge",
4+
"description": "Symfony Brevo Notifier Bridge",
5+
"keywords": ["brevo", "notifier"],
6+
"homepage": "https://symfony.com",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Pierre Tanguy",
11+
"homepage": "https://github.com/petanguy"
12+
},
13+
{
14+
"name": "Symfony Community",
15+
"homepage": "https://symfony.com/contributors"
16+
}
17+
],
18+
"require": {
19+
"php": ">=8.1",
20+
"symfony/http-client": "^5.4|^6.0",
21+
"symfony/notifier": "^6.3"
1522
},
16-
{
17-
"name": "Symfony Community",
18-
"homepage": "https://symfony.com/contributors"
19-
}
20-
],
21-
"require": {
22-
"php": ">=8.1",
23-
"symfony/http-client": "^5.4|^6.0",
24-
"symfony/notifier": "^6.3"
25-
},
26-
"require-dev": {
27-
"symfony/event-dispatcher": "^5.4|^6.0"
28-
},
29-
"autoload": {
30-
"psr-4": {"Symfony\\Component\\Notifier\\Bridge\\Brevo\\": ""},
31-
"exclude-from-classmap": [
32-
"/Tests/"
33-
]
34-
},
35-
"minimum-stability": "dev"
23+
"require-dev": {
24+
"symfony/event-dispatcher": "^5.4|^6.0"
25+
},
26+
"autoload": {
27+
"psr-4": {"Symfony\\Component\\Notifier\\Bridge\\Brevo\\": ""},
28+
"exclude-from-classmap": [
29+
"/Tests/"
30+
]
31+
},
32+
"minimum-stability": "dev"
3633
}
34+

src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Symfony\Component\Notifier\Bridge\Sendinblue\SendinblueTransportFactory;
1515
use Symfony\Component\Notifier\Test\TransportFactoryTestCase;
1616

17+
/**
18+
* @group legacy
19+
*/
1720
final class SendinblueTransportFactoryTest extends TransportFactoryTestCase
1821
{
1922
public function createFactory(): SendinblueTransportFactory

src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
use Symfony\Contracts\HttpClient\HttpClientInterface;
2222
use Symfony\Contracts\HttpClient\ResponseInterface;
2323

24+
/**
25+
* @group legacy
26+
*/
2427
final class SendinblueTransportTest extends TransportTestCase
2528
{
2629
public static function createTransport(HttpClientInterface $client = null): SendinblueTransport

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy