Skip to content

Commit 3903808

Browse files
committed
[CS] Replace easy occurences of ?: with ??
1 parent 76b64a4 commit 3903808

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class AbstractTransport implements TransportInterface
3434
public function __construct(EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
3535
{
3636
$this->dispatcher = LegacyEventDispatcherProxy::decorate($dispatcher);
37-
$this->logger = $logger ?: new NullLogger();
37+
$this->logger = $logger ?? new NullLogger();
3838
}
3939

4040
/**

Transport/Smtp/SmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(AbstractStream $stream = null, EventDispatcherInterf
4444
{
4545
parent::__construct($dispatcher, $logger);
4646

47-
$this->stream = $stream ?: new SocketStream();
47+
$this->stream = $stream ?? new SocketStream();
4848
}
4949

5050
public function getStream(): AbstractStream

0 commit comments

Comments
 (0)