Skip to content

Commit 8b9d11d

Browse files
Add types to private and internal properties
1 parent b463bcf commit 8b9d11d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Message/PushMessage.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*/
1919
class PushMessage implements MessageInterface, FromNotificationInterface
2020
{
21-
private $transport;
22-
private $subject;
23-
private $content;
24-
private $options;
25-
private $notification;
21+
private ?string $transport = null;
22+
private string $subject;
23+
private string $content;
24+
private ?MessageOptionsInterface $options;
25+
private ?Notification $notification = null;
2626

2727
public function __construct(string $subject, string $content, MessageOptionsInterface $options = null)
2828
{

Test/Constraint/NotificationCount.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
*/
2020
final class NotificationCount extends Constraint
2121
{
22-
private $expectedValue;
23-
private $transport;
24-
private $queued;
22+
private int $expectedValue;
23+
private ?string $transport;
24+
private bool $queued;
2525

2626
public function __construct(int $expectedValue, string $transport = null, bool $queued = false)
2727
{

Test/Constraint/NotificationSubjectContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class NotificationSubjectContains extends Constraint
2121
{
22-
private $expectedText;
22+
private string $expectedText;
2323

2424
public function __construct(string $expectedText)
2525
{

Test/Constraint/NotificationTransportIsEqual.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class NotificationTransportIsEqual extends Constraint
2121
{
22-
private $expectedText;
22+
private string $expectedText;
2323

2424
public function __construct(string $expectedText)
2525
{

0 commit comments

Comments
 (0)