Skip to content

Commit 9e911dc

Browse files
committed
fix: specify value type for $options in ConnectionConfigDTO to satisfy phpstan
- Updated DocBlock to use array<int|string, mixed> for adapter options - Resolves PHPStan warning: "no value type specified in iterable type array"
1 parent fd098f9 commit 9e911dc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/DTO/ConnectionConfigDTO.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ final class ConnectionConfigDTO
5959
* Defines complete connection configuration properties, supporting both
6060
* DSN-based and parameter-based connection schemes.
6161
*
62-
* @param string|null $dsn Full connection string (e.g., `"mysql:host=127.0.0.1;dbname=maatify"`).
63-
* @param string|null $host Hostname or IP of the data source.
64-
* @param string|null $port Port number (string to maintain type consistency).
65-
* @param string|null $user Username credential for authentication.
66-
* @param string|null $pass Password credential for authentication.
67-
* @param string|null $database Target database name (if applicable).
68-
* @param array $options Adapter-specific or driver options (e.g., PDO attributes).
69-
* @param string|null $driver Driver type (e.g., `"pdo"`, `"dbal"`, `"mysqli"`, `"mongo"`, `"redis"`).
70-
* @param string|null $profile Optional configuration profile (e.g., `"local"`, `"production"`).
62+
* @param string|null $dsn Full connection string (e.g., `"mysql:host=127.0.0.1;dbname=maatify"`).
63+
* @param string|null $host Hostname or IP of the data source.
64+
* @param string|null $port Port number (string to maintain type consistency).
65+
* @param string|null $user Username credential for authentication.
66+
* @param string|null $pass Password credential for authentication.
67+
* @param string|null $database Target database name (if applicable).
68+
* @param array<int|string, mixed> $options Adapter-specific or driver options (e.g., PDO attributes).
69+
* @param string|null $driver Driver type (e.g., `"pdo"`, `"dbal"`, `"mysqli"`, `"mongo"`, `"redis"`).
70+
* @param string|null $profile Optional configuration profile (e.g., `"local"`, `"production"`).
7171
*/
7272
public function __construct(
7373
public ?string $dsn = null,

0 commit comments

Comments
 (0)