Skip to content

Commit

Permalink
Fix PHP 7.4 compat bug in Config/Authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Sep 16, 2021
1 parent f263d13 commit b9fc3ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions lib/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function getRestrictedDataToken(string $path, string $method, ?bool $gene
*
* @return string
*/
public function getLwaClientId(): string
public function getLwaClientId(): ?string
{
return $this->lwaClientId;
}
Expand All @@ -349,7 +349,7 @@ public function setLwaClientId(string $lwaClientId): void
*
* @return string
*/
public function getLwaClientSecret(): string
public function getLwaClientSecret(): ?string
{
return $this->lwaClientSecret;
}
Expand All @@ -370,7 +370,7 @@ public function setLwaClientSecret(string $lwaClientSecret): void
*
* @return string|null
*/
public function getLwaRefreshToken()
public function getLwaRefreshToken(): ?string
{
return $this->lwaRefreshToken;
}
Expand All @@ -391,7 +391,7 @@ public function setLwaRefreshToken(?string $lwaRefreshToken = null): void
*
* @return string
*/
public function getAwsAccessKeyId(): string
public function getAwsAccessKeyId(): ?string
{
return $this->awsAccessKeyId;
}
Expand All @@ -412,7 +412,7 @@ public function setAwsAccessKeyId(string $awsAccessKeyId): void
*
* @return string|null
*/
public function getAwsSecretAccessKey(): string|null
public function getAwsSecretAccessKey(): ?string
{
return $this->awsSecretAccessKey;
}
Expand Down
12 changes: 6 additions & 6 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getRequestDatetime()
*
* @return string
*/
public function getLwaClientId(): string
public function getLwaClientId(): ?string
{
return $this->auth->getLwaClientId();
}
Expand All @@ -277,7 +277,7 @@ public function setLwaClientId(string $lwaClientId): void
*
* @return string
*/
public function getLwaClientSecret(): string
public function getLwaClientSecret(): ?string
{
return $this->auth->getLwaClientSecret();
}
Expand All @@ -296,9 +296,9 @@ public function setLwaClientSecret(string $lwaClientSecret): void
/**
* Get LWA refresh token.
*
* @return string|null
* @return string
*/
public function getLwaRefreshToken()
public function getLwaRefreshToken(): ?string
{
return $this->auth->getLwaRefreshToken();
}
Expand All @@ -319,7 +319,7 @@ public function setLwaRefreshToken(?string $lwaRefreshToken = null): void
*
* @return string
*/
public function getAwsAccessKeyId(): string
public function getAwsAccessKeyId(): ?string
{
return $this->auth->getAwsAccessKeyId();
}
Expand All @@ -340,7 +340,7 @@ public function setAwsAccessKeyId(string $awsAccessKeyId): void
*
* @return string|null
*/
public function getAwsSecretAccessKey(): string|null
public function getAwsSecretAccessKey(): ?string
{
return $this->auth->getAwsSecretAccessKey();
}
Expand Down

0 comments on commit b9fc3ba

Please sign in to comment.