Document null as a possible type

parent dc8d2f34
...@@ -1034,9 +1034,9 @@ class Connection implements DriverConnection ...@@ -1034,9 +1034,9 @@ class Connection implements DriverConnection
* *
* This method supports PDO binding types as well as DBAL mapping types. * This method supports PDO binding types as well as DBAL mapping types.
* *
* @param string $query The SQL query. * @param string $query The SQL query.
* @param mixed[] $params The query parameters. * @param array<mixed> $params The query parameters.
* @param int[]|string[] $types The parameter types. * @param array<int|string|null> $types The parameter types.
* *
* @return int The number of affected rows. * @return int The number of affected rows.
* *
......
...@@ -10,9 +10,9 @@ interface SQLLogger ...@@ -10,9 +10,9 @@ interface SQLLogger
/** /**
* Logs a SQL statement somewhere. * Logs a SQL statement somewhere.
* *
* @param string $sql The SQL to be executed. * @param string $sql The SQL to be executed.
* @param mixed[]|null $params The SQL parameters. * @param mixed[]|null $params The SQL parameters.
* @param int[]|string[]|null $types The SQL parameter types. * @param array<int|string|null> $types The SQL parameter types.
* *
* @return void * @return void
*/ */
......
...@@ -118,9 +118,9 @@ class SQLParserUtils ...@@ -118,9 +118,9 @@ class SQLParserUtils
/** /**
* For a positional query this method can rewrite the sql statement with regard to array parameters. * For a positional query this method can rewrite the sql statement with regard to array parameters.
* *
* @param string $query The SQL query to execute. * @param string $query The SQL query to execute.
* @param mixed[] $params The parameters to bind to the query. * @param mixed[] $params The parameters to bind to the query.
* @param int[]|string[] $types The types the previous parameters are in. * @param array<string|int|null> $types The types the previous parameters are in.
* *
* @return mixed[] * @return mixed[]
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment