Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Fixed a Psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbdaly committed Feb 13, 2022
1 parent 8de08c1 commit 6654880
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AzureStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Filesystem;
use Matthewbdaly\LaravelAzureStorage\Exceptions\EndpointNotSet;
use Matthewbdaly\LaravelAzureStorage\Exceptions\KeyNotSet;
use MicrosoftAzure\Storage\Blob\BlobRestProxy;
use MicrosoftAzure\Storage\Common\Middlewares\RetryMiddleware;
use MicrosoftAzure\Storage\Common\Middlewares\RetryMiddlewareFactory;
Expand Down Expand Up @@ -128,6 +129,9 @@ protected function createConnectionString(array $config): string
$config['sasToken']
);
}
if (!isset($config['key'])) {
throw new KeyNotSet();
}
$endpoint = sprintf(
'DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;',
$config['name'],
Expand Down

0 comments on commit 6654880

Please sign in to comment.