Fix parameter type and generate documentation

This commit is contained in:
René Preuß
2019-11-19 17:21:13 +01:00
parent 203dc18766
commit b5ad7786f2
3 changed files with 17 additions and 9 deletions

View File

@@ -32,12 +32,12 @@ trait DocumentsTrait
/**
* Create a Documents download url
*
* @param mixed $identifier
* @param string $identifier
* @param CarbonInterface|null $expiresAt
*
* @return Result
*/
public function createDocumentDownloadUrl($identifier, ?CarbonInterface $expiresAt = null): Result
public function createDocumentDownloadUrl(string $identifier, ?CarbonInterface $expiresAt = null): Result
{
return $this->post("documents/$identifier/download-url", [
'expires_at' => $expiresAt