Skip to content

Commit c1208d4

Browse files
Add types to public and protected properties
1 parent d562e51 commit c1208d4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Channel/AbstractChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*/
2121
abstract class AbstractChannel implements ChannelInterface
2222
{
23-
protected $transport;
24-
protected $bus;
23+
protected ?TransportInterface $transport;
24+
protected ?MessageBusInterface $bus;
2525

2626
public function __construct(TransportInterface $transport = null, MessageBusInterface $bus = null)
2727
{

Transport/AbstractTransport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ abstract class AbstractTransport implements TransportInterface
3030

3131
private ?EventDispatcherInterface $dispatcher;
3232

33-
protected $client;
34-
protected $host;
35-
protected $port;
33+
protected ?HttpClientInterface $client;
34+
protected ?string $host = null;
35+
protected ?int $port = null;
3636

3737
public function __construct(HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3838
{

Transport/AbstractTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*/
2222
abstract class AbstractTransportFactory implements TransportFactoryInterface
2323
{
24-
protected $dispatcher;
25-
protected $client;
24+
protected ?EventDispatcherInterface $dispatcher;
25+
protected ?HttpClientInterface $client;
2626

2727
public function __construct(EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null)
2828
{

0 commit comments

Comments
 (0)