Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Vimeo/Upload/TusClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class TusClient extends \TusPhp\Tus\Client
{
/**
* Sets the url for retrieving the TUS upload.
* @param string $url
* @param string|null $url
* @return $this
*/
public function setUrl(string $url)
public function setUrl(?string $url)
{
$this->url = $url;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/Vimeo/Upload/TusClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class TusClientFactory
{
/**
* @param string $base_uri The fully qualified domain of the upload, ex: https://us-files.tus.vimeo.com
* @param string $url The fully qualified url of the upload, ex: https://us-files.tus.vimeo.com/files/vimeo-a1b2c3d4
* @param string|null $url The fully qualified url of the upload, ex: https://us-files.tus.vimeo.com/files/vimeo-a1b2c3d4
* @return Client
*/
public function getTusClient(string $base_uri, string $url) : Client
public function getTusClient(string $base_uri, ?string $url) : Client
{
$client = new TusClient($base_uri);
$client->setUrl($url);
Expand Down