Skip to content

Commit 9485c4a

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [CS] Replace easy occurences of ?: with ??
2 parents 04475b8 + 3903808 commit 9485c4a

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
@@ -35,7 +35,7 @@ abstract class AbstractTransport implements TransportInterface
3535
public function __construct(EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
3636
{
3737
$this->dispatcher = class_exists(Event::class) ? LegacyEventDispatcherProxy::decorate($dispatcher) : $dispatcher;
38-
$this->logger = $logger ?: new NullLogger();
38+
$this->logger = $logger ?? new NullLogger();
3939
}
4040

4141
/**

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)