Skip to content

Commit 120ff47

Browse files
authored
Merge pull request #138 from simoheinonen/php84-deprecations
PHP 8.4 deprecations
2 parents e111b6f + a936ade commit 120ff47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Client
5757
*/
5858
public function __construct(
5959
string|array|TokenProvider|null $accessTokenOrAppCredentials = null,
60-
ClientInterface $client = null,
60+
?ClientInterface $client = null,
6161
int $maxChunkSize = self::MAX_CHUNK_SIZE,
6262
protected int $maxUploadChunkRetries = 0,
6363
protected ?string $teamMemberId = null,
@@ -171,7 +171,7 @@ public function search(string $query, bool $includeHighlights = false): array
171171
*
172172
* @link https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
173173
*/
174-
public function listSharedLinks(string $path = null, bool $direct_only = false, string $cursor = null): array
174+
public function listSharedLinks(?string $path = null, bool $direct_only = false, ?string $cursor = null): array
175175
{
176176
$parameters = [
177177
'path' => $path ? $this->normalizePath($path) : null,
@@ -627,7 +627,7 @@ public function contentEndpointRequest(string $endpoint, array $arguments, mixed
627627
* @param array<string, string|bool|array<string>>|null $parameters
628628
* @return array<mixed>
629629
*/
630-
public function rpcEndpointRequest(string $endpoint, array $parameters = null, bool $isRefreshed = false): array
630+
public function rpcEndpointRequest(string $endpoint, ?array $parameters = null, bool $isRefreshed = false): array
631631
{
632632
try {
633633
$options = ['headers' => $this->getHeaders()];

0 commit comments

Comments
 (0)