10000 Refactor data field usage in options · symfony/symfony@19f4620 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19f4620

Browse files
committed
Refactor data field usage in options
1 parent 07604d7 commit 19f4620

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Firebase/FirebaseOptions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ abstract class FirebaseOptions implements MessageOptionsInterface
2727
*/
2828
protected $options;
2929

30-
protected $data;
30+
private $data;
3131

32-
public function __construct(string $to, array $options, array $data)
32+
public function __construct(string $to, array $options, array $data = [])
3333
{
3434
$this->to = $to;
3535
$this->options = $options;
@@ -41,6 +41,7 @@ public function toArray(): array
4141
return [
4242
'to' => $this->to,
4343
'notification' => $this->options,
44+
'data' => $this->data,
4445
];
4546
}
4647

0 commit comments

Comments
 (0)
0