Skip to content

Commit 5d9faf3

Browse files
committed
Remove FQCN type hints on properties
1 parent 3e0ca68 commit 5d9faf3

21 files changed

+29
-29
lines changed

Channel/BrowserChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
final class BrowserChannel implements ChannelInterface
2222
{
23-
private RequestStack $stack;
23+
private $stack;
2424

2525
public function __construct(RequestStack $stack)
2626
{

Channel/EmailChannel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
*/
3030
class EmailChannel implements ChannelInterface
3131
{
32-
private ?TransportInterface $transport;
33-
private ?MessageBusInterface $bus;
32+
private $transport;
33+
private $bus;
3434
private string|Address|null $from;
35-
private ?Envelope $envelope;
35+
private $envelope;
3636

3737
public function __construct(TransportInterface $transport = null, MessageBusInterface $bus = null, string $from = null, Envelope $envelope = null)
3838
{

Chatter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424
final class Chatter implements ChatterInterface
2525
{
26-
private TransportInterface $transport;
27-
private ?MessageBusInterface $bus;
28-
private ?EventDispatcherInterface $dispatcher;
26+
private $transport;
27+
private $bus;
28+
private $dispatcher;
2929

3030
public function __construct(TransportInterface $transport, MessageBusInterface $bus = null, EventDispatcherInterface $dispatcher = null)
3131
{

DataCollector/NotificationDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
final class NotificationDataCollector extends DataCollector
2424
{
25-
private NotificationLoggerListener $logger;
25+
private $logger;
2626

2727
public function __construct(NotificationLoggerListener $logger)
2828
{

Event/FailedMessageEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class FailedMessageEvent extends Event
2121
{
22-
private MessageInterface $message;
22+
private $message;
2323
private \Throwable $error;
2424

2525
public function __construct(MessageInterface $message, \Throwable $error)

Event/MessageEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class MessageEvent extends Event
2121
{
22-
private MessageInterface $message;
22+
private $message;
2323
private bool $queued;
2424

2525
public function __construct(MessageInterface $message, bool $queued = false)

Event/SentMessageEvent.php

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

2424
public function __construct(SentMessage $message)
2525
{

EventListener/NotificationLoggerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class NotificationLoggerListener implements EventSubscriberInterface, ResetInterface
2323
{
24-
private NotificationEvents $events;
24+
private $events;
2525

2626
public function __construct()
2727
{

EventListener/SendFailedMessageToNotifierListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class SendFailedMessageToNotifierListener implements EventSubscriberInterface
2525
{
26-
private Notifier $notifier;
26+
private $notifier;
2727

2828
public function __construct(Notifier $notifier)
2929
{

Exception/TransportException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class TransportException extends RuntimeException implements TransportExceptionInterface
2020
{
21-
private ResponseInterface $response;
21+
private $response;
2222
private string $debug = '';
2323

2424
public function __construct(string $message, ResponseInterface $response, int $code = 0, \Throwable $previous = null)

Message/ChatMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ final class ChatMessage implements MessageInterface
2020
{
2121
private ?string $transport = null;
2222
private string $subject;
23-
private ?MessageOptionsInterface $options;
24-
private ?Notification $notification = null;
23+
private $options;
24+
private $notification = null;
2525

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

Message/EmailMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
final class EmailMessage implements MessageInterface
2727
{
28-
private RawMessage $message;
29-
private ?Envelope $envelope;
28+
private $message;
29+
private $envelope;
3030

3131
public function __construct(RawMessage $message, Envelope $envelope = null)
3232
{

Message/NullMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
final class NullMessage implements MessageInterface
1818
{
19-
private MessageInterface $decoratedMessage;
19+
private $decoratedMessage;
2020

2121
public function __construct(MessageInterface $message)
2222
{

Message/SentMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
final class SentMessage
1818
{
19-
private MessageInterface $original;
19+
private $original;
2020
private string $transport;
2121
private ?string $messageId = null;
2222

Messenger/MessageHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
final class MessageHandler
2222
{
23-
private TransportInterface $transport;
23+
private $transport;
2424

2525
public function __construct(TransportInterface $transport)
2626
{

Notification/Notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Notification
4040
private string $subject = '';
4141
private string $content = '';
4242
private string $emoji = '';
43-
private ?FlattenException $exception = null;
43+
private $exception = null;
4444
private string $exceptionAsString = '';
4545
private string $importance = self::IMPORTANCE_HIGH;
4646

Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Notifier implements NotifierInterface
2828
{
2929
private array $adminRecipients = [];
3030
private array|ContainerInterface $channels;
31-
private ?ChannelPolicyInterface $policy;
31+
private $policy;
3232

3333
/**
3434
* @param ChannelInterface[]|ContainerInterface $channels

Texter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424
final class Texter implements TexterInterface
2525
{
26-
private TransportInterface $transport;
27-
private ?MessageBusInterface $bus;
28-
private ?EventDispatcherInterface $dispatcher;
26+
private $transport;
27+
private $bus;
28+
private $dispatcher;
2929

3030
public function __construct(TransportInterface $transport, MessageBusInterface $bus = null, EventDispatcherInterface $dispatcher = null)
3131
{

Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class AbstractTransport implements TransportInterface
2828
{
2929
protected const HOST = 'localhost';
3030

31-
private ?EventDispatcherInterface $dispatcher;
31+
private $dispatcher;
3232

3333
protected $client;
3434
protected $host;

Transport/FailoverTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class FailoverTransport extends RoundRobinTransport
2222
{
23-
private ?TransportInterface $currentTransport = null;
23+
private $currentTransport = null;
2424

2525
protected function getNextTransport(MessageInterface $message): ?TransportInterface
2626
{

Transport/NullTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class NullTransport implements TransportInterface
2525
{
26-
private ?EventDispatcherInterface $dispatcher;
26+
private $dispatcher;
2727

2828
public function __construct(EventDispatcherInterface $dispatcher = null)
2929
{

0 commit comments

Comments
 (0)