Skip to content

Commit fa99863

Browse files
committed
Explicitly mark nullable arguments (PHP8.4 compat)
1 parent ecc78b4 commit fa99863

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/MAPI/MapiMessageFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MapiMessageFactory
99
{
1010
private $parent = null;
1111

12-
public function __construct(ConversionFactory $conversionFactory = null)
12+
public function __construct(?ConversionFactory $conversionFactory = null)
1313
{
1414
$this->parent = $conversionFactory;
1515
}

src/MAPI/Message/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Message extends MessageItem
4444

4545

4646

47-
public function __construct(Element $obj, Message $parent = null)
47+
public function __construct(Element $obj, ?Message $parent = null)
4848
{
4949

5050
$this->obj = $obj;

src/MAPI/Mime/Swiftmailer/Adapter/HeaderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HeaderFactory extends Swift_Mime_SimpleHeaderFactory
1414
protected $encoder;
1515
protected $charset;
1616

17-
public function __construct(Swift_Mime_HeaderEncoder $encoder, Swift_Encoder $paramEncoder, EmailValidator $emailValidator, $charset = null, Swift_AddressEncoder $addressEncoder = null)
17+
public function __construct(Swift_Mime_HeaderEncoder $encoder, Swift_Encoder $paramEncoder, EmailValidator $emailValidator, $charset = null, ?Swift_AddressEncoder $addressEncoder = null)
1818
{
1919
parent::__construct($encoder, $paramEncoder, $emailValidator, $charset, $addressEncoder);
2020

src/MAPI/OLE/Pear/DocumentElementCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DocumentElementCollection implements \ArrayAccess, \IteratorAggregate
1111
private $col = [];
1212
private $proxy_col = [];
1313

14-
public function __construct(OLE $ole, array &$collection = null)
14+
public function __construct(OLE $ole, ?array &$collection = null)
1515
{
1616
if (is_null($collection)) {
1717
$tmpcol = [];

src/MAPI/Property/PropertyStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PropertyStore
3030
protected $logger;
3131

3232

33-
public function __construct(Element $obj = null, $nameId = null, LoggerInterface $logger = null)
33+
public function __construct(?Element $obj = null, $nameId = null, ?LoggerInterface $logger = null)
3434
{
3535
$this->cache = new PropertyCollection();
3636
$this->nameId = null;

0 commit comments

Comments
 (0)