Skip to content

Commit 4b5b19f

Browse files
committed
suppressed factories of external adapters
1 parent f0a7dce commit 4b5b19f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/internal/Magento/Framework/Storage/AdapterFactory/AwsS3Factory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class AwsS3Factory implements AdapterFactoryInterface
2020
*/
2121
public function create(array $options): AdapterInterface
2222
{
23+
// phpstan:ignore
2324
if (empty($options['client']) || empty($options['bucket'])) {
2425
throw new InvalidStorageConfigurationException(
2526
"Can't create AWS S3 adapter: required 'client' and/or 'bucket' options are absent"

lib/internal/Magento/Framework/Storage/AdapterFactory/AzureFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class AzureFactory implements AdapterFactoryInterface
2020
*/
2121
public function create(array $options): AdapterInterface
2222
{
23+
// phpstan:ignore
2324
if (empty($options['connection_string']) || empty($options['container_name'])) {
2425
throw new InvalidStorageConfigurationException(
2526
"Can't create Azure Blob storage adapter: " .

0 commit comments

Comments
 (0)