Skip to content

Commit b40bbf5

Browse files
committed
Fix php8.4 deprecated notices
1 parent 99db93b commit b40bbf5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+52
-52
lines changed

src/Directory/Users/UserCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class UserCollection extends EntityCollection
1212
{
1313

14-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
14+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
1515
{
1616
parent::__construct($ctx, $resourcePath, User::class);
1717
}

src/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class Entity extends ClientObject
1919
{
2020

21-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null, $namespace = null)
21+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null, $namespace = null)
2222
{
2323
parent::__construct($ctx, $resourcePath, null, $namespace);
2424
}

src/EntityCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EntityCollection extends ClientObjectCollection
1919
* @param ResourcePath|null $resourcePath
2020
* @param null $itemTypeName
2121
*/
22-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null, $itemTypeName = null)
22+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null, $itemTypeName = null)
2323
{
2424
parent::__construct($ctx, $resourcePath, $itemTypeName);
2525
}

src/OneDrive/DriveItems/DriveItemCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class DriveItemCollection extends EntityCollection
1919
{
2020

21-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
21+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
2222
{
2323
parent::__construct($ctx, $resourcePath, DriveItem::class);
2424
}

src/OneDrive/Drives/DriveCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class DriveCollection extends EntityCollection
1313
{
1414

15-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
15+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
1616
{
1717
parent::__construct($ctx, $resourcePath, Drive::class);
1818
}

src/OneDrive/ListItems/ListItemCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class ListItemCollection extends EntityCollection
1212
{
1313

14-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
14+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
1515
{
1616
parent::__construct($ctx, $resourcePath, ListItem::class);
1717
}

src/OneDrive/PermissionCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class PermissionCollection extends EntityCollection
1212
{
1313

14-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
14+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
1515
{
1616
parent::__construct($ctx, $resourcePath, Permission::class);
1717
}

src/OneNote/Pages/OnenotePageCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class OnenotePageCollection extends EntityCollection
1313
{
14-
public function __construct(ClientRuntimeContext $ctx, ResourcePath $resourcePath = null)
14+
public function __construct(ClientRuntimeContext $ctx, ?ResourcePath $resourcePath = null)
1515
{
1616
parent::__construct($ctx, $resourcePath, OnenotePage::class);
1717
}

src/Outlook/Recipient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class Recipient extends Complex
1111
{
12-
function __construct(EmailAddress $emailAddress=null)
12+
function __construct(?EmailAddress $emailAddress=null)
1313
{
1414
$this->EmailAddress = $emailAddress;
1515
parent::__construct();

src/Runtime/ClientObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class ClientObject
5858
* @param string|null $namespace
5959
*/
6060
public function __construct(ClientRuntimeContext $ctx,
61-
ResourcePath $resourcePath = null,
62-
ODataQueryOptions $queryOptions = null,
61+
?ResourcePath $resourcePath = null,
62+
?ODataQueryOptions $queryOptions = null,
6363
$namespace=null)
6464
{
6565
$this->context = $ctx;

0 commit comments

Comments
 (0)