Skip to content

Commit

Permalink
Implicitly marking parameter $foo as nullable is deprecated, the expl…
Browse files Browse the repository at this point in the history
…icit nullable type must be used instead
  • Loading branch information
simoheinonen committed Jan 2, 2025
1 parent e111b6f commit a936ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Client
*/
public function __construct(
string|array|TokenProvider|null $accessTokenOrAppCredentials = null,
ClientInterface $client = null,
?ClientInterface $client = null,
int $maxChunkSize = self::MAX_CHUNK_SIZE,
protected int $maxUploadChunkRetries = 0,
protected ?string $teamMemberId = null,
Expand Down Expand Up @@ -171,7 +171,7 @@ public function search(string $query, bool $includeHighlights = false): array
*
* @link https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
*/
public function listSharedLinks(string $path = null, bool $direct_only = false, string $cursor = null): array
public function listSharedLinks(?string $path = null, bool $direct_only = false, ?string $cursor = null): array
{
$parameters = [
'path' => $path ? $this->normalizePath($path) : null,
Expand Down Expand Up @@ -627,7 +627,7 @@ public function contentEndpointRequest(string $endpoint, array $arguments, mixed
* @param array<string, string|bool|array<string>>|null $parameters
* @return array<mixed>
*/
public function rpcEndpointRequest(string $endpoint, array $parameters = null, bool $isRefreshed = false): array
public function rpcEndpointRequest(string $endpoint, ?array $parameters = null, bool $isRefreshed = false): array
{
try {
$options = ['headers' => $this->getHeaders()];
Expand Down

0 comments on commit a936ade

Please sign in to comment.