Skip to content

Commit

Permalink
refactor: fix lvl5 errors for AwsS3 and AzureBlobStorage adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Oct 23, 2023
1 parent af1fda7 commit fd3ac32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gaufrette/Adapter/AwsS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
/**
* {@inheritdoc}
*/
public function setMetadata(string $key, array $content): void
public function setMetadata(string $key, array $metadata): void
{
// BC with AmazonS3 adapter
if (isset($metadata['contentType'])) {
Expand Down
5 changes: 3 additions & 2 deletions src/Gaufrette/Adapter/AzureBlobStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Gaufrette\Adapter;
use Gaufrette\Util;
use Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface;
use MicrosoftAzure\Storage\Blob\Internal\IBlob;
use MicrosoftAzure\Storage\Blob\Models\Blob;
use MicrosoftAzure\Storage\Blob\Models\BlobServiceOptions;
use MicrosoftAzure\Storage\Blob\Models\Container;
Expand All @@ -28,7 +29,7 @@ class AzureBlobStorage implements Adapter, MetadataSupporter, SizeCalculator, Ch
const ERROR_CONTAINER_ALREADY_EXISTS = 'ContainerAlreadyExists';
const ERROR_CONTAINER_NOT_FOUND = 'ContainerNotFound';

protected \MicrosoftAzure\Storage\Blob\Internal\IBlob $blobProxy;
protected ?IBlob $blobProxy = null;

protected bool $multiContainerMode = false;

Expand Down Expand Up @@ -479,7 +480,7 @@ private function guessContentType($content): string
}

/**
* @return array<string, string>
* @return array{string, string}
*/
private function tokenizeKey(string $key): array
{
Expand Down

0 comments on commit fd3ac32

Please sign in to comment.