Skip to content

Commit 55dfb97

Browse files
authored
Merge pull request #341 from chou666/bugfix/deprecation
Fix deprectation notice
2 parents 58d8093 + b7ad69d commit 55dfb97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Vimeo/Vimeo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Vimeo
6363
* @param string|null $access_token Your access token. Can be found on developer.vimeo.com/apps or generated using OAuth 2.
6464
* @param TusClientFactory|null $tus_client_interface Your tus client that will be used.
6565
*/
66-
public function __construct(string $client_id, string $client_secret, string $access_token = null, TusClientFactory $tus_client_factory = null)
66+
public function __construct(string $client_id, string $client_secret, ?string $access_token = null, ?TusClientFactory $tus_client_factory = null)
6767
{
6868
$this->_client_id = $client_id;
6969
$this->_client_secret = $client_secret;
@@ -205,7 +205,7 @@ public function setCURLOptions(array $curl_opts = array()): void
205205
* @param string|null $proxy_port Optional number of port.
206206
* @param string|null $proxy_userpwd Optional `user:password` authentication.
207207
*/
208-
public function setProxy(string $proxy_address, string $proxy_port = null, string $proxy_userpwd = null): void
208+
public function setProxy(string $proxy_address, ?string $proxy_port = null, ?string $proxy_userpwd = null): void
209209
{
210210
$this->CURL_DEFAULTS[CURLOPT_PROXY] = $proxy_address;
211211
if ($proxy_port) {

0 commit comments

Comments
 (0)