8000 target version 5.1 · symfony/symfony@34ea398 · GitHub
[go: up one dir, main page]

Skip to content

Commit 34ea398

Browse files
committed
target version 5.1
1 parent 9403b2e commit 34ea398

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGELOG
22
=========
33

4-
5.0.0
4+
5.1.0
55
-----
66

77
* Added the bridge

src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Symfony\Component\Notifier\Message\MessageOptionsInterface;
1515

1616
/**
17-
* @author Jeroen Spee <spee.jeroen@gmail.com>
17+
* @author Jeroen Spee <https://github.com/Jeroeny>
1818
*
19-
* @experimental in 5.0
19+
* @experimental in 5.1
2020
*
2121
* @see https://rocket.chat/docs/administrator-guides/integrations/
2222
*/

src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatTransport.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
use Symfony\Contracts\HttpClient\HttpClientInterface;
2121

2222
/**
23-
* @author Jeroen Spee <spee.jeroen@gmail.com>
23+
* @author Jeroen Spee <https://github.com/Jeroeny>
2424
*
2525
* @internal
2626
*
27-
* @experimental in 5.0
27+
* @experimental in 5.1
2828
*/
2929
final class RocketChatTransport extends AbstractTransport
3030
{
@@ -68,8 +68,7 @@ protected function doSend(MessageInterface $message): void
6868
throw new LogicException(sprintf('The "%s" transport only supports instances of "%s" for options.', __CLASS__, RocketChatOptions::class));
6969
}
7070

71-
$options = $message->getOptions()->toArray();
72-
71+
$options = ($opts = $message->getOptions()) ? $opts->toArray() : [];
7372
if (!isset($options['channel'])) {
7473
$options['channel'] = $message->getRecipientId() ?: $this->chatChannel;
7574
}

src/Symfony/Component/Notifier/Bridge/RocketChat/RocketChatTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
use Symfony\Component\Notifier\Transport\TransportInterface;
1818

1919
/**
20-
* @author Jeroen Spee <spee.jeroen@gmail.com>
20+
* @author Jeroen Spee <https://github.com/Jeroeny>
2121
*
22-
* @experimental in 5.0
22+
* @experimental in 5.1
2323
*/
2424
final class RocketChatTransportFactory extends AbstractTransportFactory
2525
{

src/Symfony/Component/Notifier/Bridge/RocketChat/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"authors": [
99
{
1010
"name": "Jeroen Spee",
11-
"email": "spee.jeroen@gmail.com"
11+
"homepage": "https://github.com/Jeroeny"
1212
},
1313
{
1414
"name": "Symfony Community",
1515
"homepage": "https://symfony.com/contributors"
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2.9",
19+
"php": "^7.2.5",
2020
"symfony/http-client": "^4.3|^5.0",
2121
"symfony/notifier": "^5.0"
2222
},
@@ -29,7 +29,7 @@
2929
"minimum-stability": "dev",
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "5.0-dev"
32+
"dev-master": "5.1-dev"
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)
0