Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrajodas committed Jan 17, 2025
1 parent fa1bbfb commit 192a916
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function __construct(Config $config, LoggerInterface $logger)
case Config::STORAGE_BACKEND_S3:
$this->storageBackend = new AwsS3Storage(
$config->getS3Config(),
$config->isUserDefinedCredentials(),
$logger,
);
break;
Expand Down
5 changes: 1 addition & 4 deletions src/Storages/AwsS3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ class AwsS3Storage implements IStorage

private LoggerInterface $logger;

private bool $userDefinedCredentials;

public const FEDERATION_TOKEN_EXPIRATION_HOURS = 36;

public function __construct(S3Config $config, bool $userDefinedCredentials, LoggerInterface $logger)
public function __construct(S3Config $config, LoggerInterface $logger)
{
$this->config = $config;
$this->logger = $logger;
$this->userDefinedCredentials = $userDefinedCredentials;
}

public function generateTempReadCredentials(string $backupId, string $path): array
Expand Down

0 comments on commit 192a916

Please sign in to comment.