@@ -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