@@ -36,7 +36,7 @@ interface ConnectionInterface extends DoctrineConnectionInterface
3636 * Method to get an array of rows for a given query from the database.
3737 * Makes use of prepared statements.
3838 *
39- * @param list<mixed > $params
39+ * @param list<scalar|null > $params
4040 * @param list<bool> $escapes
4141 *
4242 * @throws QueryException
@@ -54,7 +54,7 @@ public function getPArray(string $query, array $params = [], ?int $start = null,
5454 * Returns one row from a result-set.
5555 * Makes use of prepared statements.
5656 *
57- * @param list<mixed > $params
57+ * @param list<scalar|null > $params
5858 * @param list<bool> $escapes
5959 *
6060 * @throws QueryException
@@ -69,7 +69,7 @@ public function getPRow(string $query, array $params = [], int $number = 0, bool
6969 *
7070 * @param string $tableName the table name from which to select the row
7171 * @param list<string> $columns a flat list of column names to select
72- * @param array<string, mixed > $identifiers mapping of column name to value to search for (e.g. ["id" => 1])
72+ * @param array<string, scalar|null > $identifiers mapping of column name to value to search for (e.g. ["id" => 1])
7373 * @param bool $cached whether a previously selected result can be reused
7474 * @param list<bool>|null $escapes which parameters to escape (described in {@see dbsafeParams})
7575 * @throws QueryException
@@ -91,7 +91,7 @@ public function selectRow(string $tableName, array $columns, array $identifiers,
9191 * false and don't modify the result set you will get an endless loop, so you must get sure that in the end the
9292 * result set will be empty.
9393 *
94- * @param list<mixed > $params
94+ * @param list<scalar|null > $params
9595 *
9696 * @throws QueryException
9797 * @see iterateAssociative
@@ -103,7 +103,7 @@ public function getGenerator(string $query, array $params = [], int $chunkSize =
103103 *
104104 * Sending a prepared statement to the database
105105 *
106- * @param list<mixed > $params
106+ * @param list<scalar|null > $params
107107 * @param list<bool> $escapes An array of booleans for each param, used to block the escaping of html-special chars.
108108 * If not passed, all params will be cleaned.
109109 * @throws QueryException
@@ -122,7 +122,7 @@ public function getAffectedRowsCount(): int;
122122 * INSERT INTO $table ($columns) VALUES (?, ?), (?, ?)...
123123 *
124124 * @param list<string> $columns
125- * @param list<mixed > $valueSets
125+ * @param list<array<scalar|null> > $valueSets
126126 * @param list<bool>|null $escapes
127127 * @throws QueryException
128128 */
@@ -135,7 +135,7 @@ public function multiInsert(string $tableName, array $columns, array $valueSets,
135135 * otherwise data might be lost. And: params are sent to the database unescaped.
136136 *
137137 * @param list<string> $columns
138- * @param list<mixed > $values
138+ * @param list<scalar|null > $values
139139 * @param list<string> $primaryColumns
140140 *
141141 * @throws QueryException
@@ -196,7 +196,7 @@ public function getDatatype(DataType $type): string;
196196 * Used to send a `CREATE TABLE` statement to the database.
197197 * By passing the query through this method, the driver can add db-specific commands.
198198 *
199- * @param array<non-empty-string, array{0: DataType, 1: bool, 2?: mixed }> $columns
199+ * @param array<non-empty-string, array{0: DataType, 1: bool, 2?: string }> $columns
200200 * @param list<string> $keys
201201 * @param list<list<string>|string> $indices
202202 *
@@ -312,7 +312,7 @@ public function encloseTableName(string $tableName): string;
312312 * Helper to replace all param-placeholder with the matching value, only to be used
313313 * to render a debuggable-statement.
314314 *
315- * @param list<mixed > $params
315+ * @param list<scalar|null > $params
316316 */
317317 public function prettifyQuery (string $ query , array $ params ): string ;
318318
@@ -349,6 +349,10 @@ public function getStringLengthExpression(string $targetString): string;
349349 /**
350350 * Converts a PHP value to a value, which can be inserted into a table. I.e. it truncates the value to
351351 * the fitting length for the provided datatype.
352+ *
353+ * @param scalar|null $value
354+ *
355+ * @return scalar|null
352356 */
353357 public function convertToDatabaseValue (mixed $ value , DataType $ type ): mixed ;
354358
@@ -427,6 +431,10 @@ public function flushPreparedStatementsCache(): void;
427431 */
428432 public function getColumnsOfTable (string $ tableName ): array ;
429433
434+ /**
435+ * @param scalar|null $value
436+ * @return scalar|null
437+ */
430438 public function escape (mixed $ value ): mixed ;
431439
432440 public function hasOpenTransactions (): bool ;
0 commit comments