diff --git a/src/Cache/QueryCacheProfile.php b/src/Cache/QueryCacheProfile.php index 3a57358faad..3d5b814d2b7 100644 --- a/src/Cache/QueryCacheProfile.php +++ b/src/Cache/QueryCacheProfile.php @@ -70,7 +70,7 @@ public function getCacheKey() * Generates the real cache key from query, params, types and connection parameters. * * @param string $sql - * @param array|array $params + * @param list|array $params * @param array|array $types * @param array $connectionParams * diff --git a/src/Connection.php b/src/Connection.php index e602c8f8c0e..9477b54e5af 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -468,7 +468,7 @@ public function setAutoCommit($autoCommit) * as an associative array. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return array|false False is returned if no rows are found. @@ -489,7 +489,7 @@ public function fetchAssociative(string $query, array $params = [], array $types * as a numerically indexed array. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return list< mixed>|false False is returned if no rows are found. @@ -510,7 +510,7 @@ public function fetchNumeric(string $query, array $params = [], array $types = [ * of the first row of the result. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return mixed|false False is returned if no rows are found. @@ -778,7 +778,7 @@ public function quote($value, $type = ParameterType::STRING) * Prepares and executes an SQL query and returns the result as an array of numeric arrays. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return list> @@ -798,7 +798,7 @@ public function fetchAllNumeric(string $query, array $params = [], array $types * Prepares and executes an SQL query and returns the result as an array of associative arrays. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return list> @@ -819,7 +819,7 @@ public function fetchAllAssociative(string $query, array $params = [], array $ty * mapped to the first column and the values mapped to the second column. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return array @@ -837,7 +837,7 @@ public function fetchAllKeyValue(string $query, array $params = [], array $types * and their values. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return array> @@ -853,7 +853,7 @@ public function fetchAllAssociativeIndexed(string $query, array $params = [], ar * Prepares and executes an SQL query and returns the result as an array of the first column values. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return list @@ -873,7 +873,7 @@ public function fetchFirstColumn(string $query, array $params = [], array $types * Prepares and executes an SQL query and returns the result as an iterator over rows represented as numeric arrays. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return Traversable> @@ -898,7 +898,7 @@ public function iterateNumeric(string $query, array $params = [], array $types = * as associative arrays. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return Traversable> @@ -923,7 +923,7 @@ public function iterateAssociative(string $query, array $params = [], array $typ * mapped to the first column and the values mapped to the second column. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return Traversable @@ -941,7 +941,7 @@ public function iterateKeyValue(string $query, array $params = [], array $types * and their values. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return Traversable> @@ -957,7 +957,7 @@ public function iterateAssociativeIndexed(string $query, array $params = [], arr * Prepares and executes an SQL query and returns the result as an iterator over the first column values. * * @param string $query SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @return Traversable @@ -996,7 +996,7 @@ public function prepare(string $sql): Statement * If an SQLLogger is configured, the execution is logged. * * @param string $sql SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @throws Exception @@ -1049,7 +1049,7 @@ public function executeQuery( * Executes a caching query. * * @param string $sql SQL query - * @param array|array $params Query parameters + * @param list|array $params Query parameters * @param array|array $types Parameter types * * @throws CacheException @@ -1106,7 +1106,7 @@ public function executeCacheQuery($sql, $params, $types, QueryCacheProfile $qcp) * This method supports PDO binding types as well as DBAL mapping types. * * @param string $sql SQL statement - * @param array|array $params Statement parameters + * @param list|array $params Statement parameters * @param array|array $types Parameter types * * @return int The number of affected rows. @@ -1580,7 +1580,7 @@ public function convertToPHPValue($value, $type) * or DBAL mapping type, to a given statement. * * @param DriverStatement $stmt Prepared statement - * @param array|array $params Statement parameters + * @param list|array $params Statement parameters * @param array|array $types Parameter types * * @throws Exception @@ -1655,7 +1655,7 @@ public function createQueryBuilder() /** * @internal * - * @param array|array $params + * @param list|array $params * @param array|array $types */ final public function convertExceptionDuringQuery( diff --git a/src/Logging/SQLLogger.php b/src/Logging/SQLLogger.php index 8328a71ba5a..a0bdf1bf6a8 100644 --- a/src/Logging/SQLLogger.php +++ b/src/Logging/SQLLogger.php @@ -13,7 +13,7 @@ interface SQLLogger * Logs a SQL statement somewhere. * * @param string $sql SQL statement - * @param array|array|null $params Statement parameters + * @param list|array|null $params Statement parameters * @param array|array|null $types Parameter types * * @return void diff --git a/src/Query/QueryBuilder.php b/src/Query/QueryBuilder.php index c8bf98149e0..86e509ca8c5 100644 --- a/src/Query/QueryBuilder.php +++ b/src/Query/QueryBuilder.php @@ -90,7 +90,7 @@ class QueryBuilder /** * The query parameters. * - * @var array|array + * @var list|array */ private $params = []; @@ -298,7 +298,7 @@ public function setParameter($key, $value, $type = null) * )); * * - * @param array|array $params Parameters to set + * @param list|array $params Parameters to set * @param array|array $types Parameter types * * @return $this This QueryBuilder instance. @@ -314,7 +314,7 @@ public function setParameters(array $params, array $types = []) /** * Gets all defined query parameters for the query being constructed indexed by parameter index or name. * - * @return array|array The currently defined query parameters + * @return list|array The currently defined query parameters */ public function getParameters() {