Skip to content

Commit 569c9f3

Browse files
author
Valentino Međimorec
committed
Issue #3389860 by valic: Fix wrong type
1 parent 4aa7322 commit 569c9f3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/ClientFactory.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ClientFactory {
1616
/**
1717
* The 'dynamodb' client settings.
1818
*
19-
* @var string[]
19+
* @var array
2020
* Array of site settings.
2121
*/
2222
protected array $settings;
@@ -31,10 +31,10 @@ class ClientFactory {
3131
/**
3232
* The DynamoDB client.
3333
*
34-
* @var \Aws\DynamoDb\DynamoDbClient
34+
* @var \Aws\DynamoDb\DynamoDbClient[]
3535
* The DynamoDb client instance.
3636
*/
37-
protected DynamoDbClient $client;
37+
protected array $client;
3838

3939
/**
4040
* Constructor.
@@ -63,9 +63,9 @@ public function connect(): ?DynamoDbClient {
6363
$settings = $this->settings[$this->alias];
6464

6565
$connection_info = [
66-
'endpoint' => $settings['endpoint'],
67-
'region' => $settings['region'],
68-
'version' => $settings['version'] ?? 'latest',
66+
'endpoint' => $settings['endpoint'],
67+
'region' => $settings['region'],
68+
'version' => $settings['version'] ?? 'latest',
6969
];
7070

7171
if (isset($settings['aws_access_key'], $settings['aws_secret_key'])) {

src/DynamoDb.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ final class DynamoDb {
2828
*
2929
* It is keyed by database name and target.
3030
*
31-
* @var []\Drupal\dynamodb_client\Connection
31+
* @var \Drupal\dynamodb_client\Connection[]
3232
*/
33-
protected static $connections = [];
33+
protected static array $connections = [];
3434

3535
/**
3636
* A nested array of all active connections.
3737
*
3838
* It is keyed by database name and target.
3939
*
40-
* @var []\Aws\DynamoDb\DynamoDbClient
40+
* @var \Aws\DynamoDb\DynamoDbClient[]
4141
*/
42-
protected static $rawConnections = [];
42+
protected static array $rawConnections = [];
4343

4444
/**
4545
* Drupal wrapper with only specifics method available for DynamoDB.

0 commit comments

Comments
 (0)