@@ -42,7 +42,7 @@ class Client
4242 *
4343 * @param HttpClientInterface|null $httpClient Imgur http client
4444 */
45- public function __construct (AuthInterface $ authenticationClient = null , HttpClientInterface $ httpClient = null )
45+ public function __construct (? AuthInterface $ authenticationClient = null , ? HttpClientInterface $ httpClient = null )
4646 {
4747 $ this ->httpClient = $ httpClient ;
4848 $ this ->authenticationClient = $ authenticationClient ;
@@ -51,7 +51,7 @@ public function __construct(AuthInterface $authenticationClient = null, HttpClie
5151 /**
5252 * @throws InvalidArgumentException
5353 */
54- public function api (string $ name , PagerInterface $ pager = null ): AbstractApi
54+ public function api (string $ name , ? PagerInterface $ pager = null ): AbstractApi
5555 {
5656 if (!$ this ->getAccessToken ()) {
5757 $ this ->sign ();
@@ -97,7 +97,7 @@ public function getOption(string $name): ?string
9797 /**
9898 * @throws InvalidArgumentException
9999 */
100- public function setOption (string $ name , string $ value = null ): void
100+ public function setOption (string $ name , ? string $ value = null ): void
101101 {
102102 if (!\array_key_exists ($ name , $ this ->options )) {
103103 throw new InvalidArgumentException (sprintf ('Undefined option called: "%s" ' , $ name ));
@@ -125,7 +125,7 @@ public function getAuthenticationClient(): AuthInterface
125125 /**
126126 * Proxy method for the authentication objects URL building method.
127127 */
128- public function getAuthenticationUrl (string $ responseType = 'code ' , string $ state = null ): string
128+ public function getAuthenticationUrl (string $ responseType = 'code ' , ? string $ state = null ): string
129129 {
130130 return $ this ->getAuthenticationClient ()->getAuthenticationUrl ($ responseType , $ state );
131131 }
0 commit comments