Skip to content

Commit a0bc645

Browse files
committed
connection entry type; minor adjustments based on review
1 parent c45fc62 commit a0bc645

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/ConnectionLocator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace Atlas\Pdo;
1212

1313
/**
14+
* @phpstan-import-type connection_store_entry_array from PdoCustomTypes
1415
* @phpstan-import-type connection_store_array from PdoCustomTypes
1516
* @phpstan-import-type log_entry_array from PdoCustomTypes
1617
*/
@@ -157,7 +158,7 @@ protected function getConnection(
157158
}
158159

159160
if (! empty($this->instances[$type])) {
160-
/** @var array<string, array<string, Connection>> $instances */
161+
/** @var array<string, connection_store_entry_array> $instances */
161162
$instances = $this->instances;
162163
/** @var Connection $connection */
163164
$connection = reset($instances[$type]);

src/PdoCustomTypes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
namespace Atlas\Pdo;
1212

1313
/**
14-
* @phpstan-type connection_entry array<string, ?Connection>
14+
* @phpstan-type connection_store_entry_array array<string, Connection>
1515
*
1616
* @phpstan-type connection_store_array array{
1717
* DEFAULT: ?Connection,
18-
* READ: connection_entry,
19-
* WRITE: connection_entry
18+
* READ: connection_store_entry_array,
19+
* WRITE: connection_store_entry_array
2020
* }
2121
*
2222
* @phpstan-type dsn_args_array array{

0 commit comments

Comments
 (0)