8000 minor #59775 [Notifier] do not implement JsonSerializable in MatrixOp… · symfony/symfony@6a6ebac · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a6ebac

Browse files
committed
minor #59775 [Notifier] do not implement JsonSerializable in MatrixOptions (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [Notifier] do not implement JsonSerializable in MatrixOptions | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix #59377 (comment) | License | MIT Commits ------- 1af047d do not implement JsonSerializable in MatrixOptions
2 parents a90bd41 + 1af047d commit 6a6ebac

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/Symfony/Component/Notifier/Bridge/Matrix/MatrixOptions.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @author Frank Schulze <frank@akiber.de>
1818
*/
19-
final class MatrixOptions implements MessageOptionsInterface, \JsonSerializable
19+
final class MatrixOptions implements MessageOptionsInterface
2020
{
2121
public function __construct(
2222
private array $options = [],
@@ -32,9 +32,4 @@ public function getRecipientId(): ?string
3232
{
3333
return $this->options['recipient_id'] ?? null;
3434
}
35-
36-
public function jsonSerialize(): mixed
37-
{
38-
return $this->options;
39-
}
4035
}

src/Symfony/Component/Notifier/Bridge/Matrix/Tests/MatrixOptionsTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,4 @@ public function testGetRecipientId()
3333
]);
3434
$this->assertSame('@testuser:matrix.io', $options->getRecipientId());
3535
}
36-
37-
public function testJsonSerialize()
38-
{
39-
$options = new MatrixOptions([
40-
'recipient_id' => '@testuser:matrix.io',
41-
'msgtype' => 'm.text',
42-
'format' => 'org.matrix.custom.html',
43-
]);
44-
$this->assertSame(['recipient_id' => '@testuser:matrix.io', 'msgtype' => 'm.text', 'format' => 'org.matrix.custom.html'], $options->jsonSerialize());
45-
}
4636
}

0 commit comments

Comments
 (0)
0