Skip to content

Commit b9fbbae

Browse files
committed
CS (done in 11.0/bf PR)
1 parent 22f869e commit b9fbbae

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/DBmysqlIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function buildQuery(array $criteria): void
353353
/**
354354
* Handle "ORDER BY" SQL clause
355355
*
356-
* @param string|array $clause Clause parameters
356+
* @param string|QueryExpression|array<int, string|QueryExpression> $clause Clause parameters
357357
*
358358
* @return string
359359
*/

src/Glpi/DBAL/QueryFunction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class QueryFunction
7171
* Format the given data as a SQL function call.
7272
* The alias should not be quoted. It will be done in the returned QueryExpression when its value is evaluated.
7373
* @param string $func_name SQL function name
74-
* @param array $params Array of quoted identifiers or QueryExpressions
74+
* @param array<int, string|QueryExpression> $params Array of quoted identifiers or QueryExpressions
7575
* @param array<int, mixed> $values Array of statement values
7676
* @param string|null $alias Unquoted alias
7777
* @return QueryExpression
@@ -86,7 +86,7 @@ private static function getExpression(string $func_name, array $params, array $v
8686

8787
/**
8888
* @param string $name
89-
* @param array $arguments
89+
* @param array<int|string, mixed> $arguments
9090
*
9191
* @return QueryExpression
9292
*/
@@ -146,7 +146,7 @@ public static function dateSub(string|QueryExpression $date, int|string|QueryExp
146146

147147
/**
148148
* Build an IF SQL function call
149-
* @param string|QueryExpression|array $condition Condition to test
149+
* @param string|QueryExpression|array<string, mixed> $condition Condition to test
150150
* @param string|QueryExpression $true_expression Expression to return if condition is true
151151
* @param string|QueryExpression $false_expression Expression to return if condition is false
152152
* @param string|null $alias Function result alias (will be automatically quoted)
@@ -195,7 +195,7 @@ public static function ifnull(string|QueryExpression $expression, string|QueryEx
195195
* @param string|QueryExpression $expression Expression to group
196196
* @param string|null $separator Separator to use (will be automatically quoted as a value)
197197
* @param bool $distinct Use DISTINCT or not
198-
* @param array|string|null $order_by Order by clause
198+
* @param string|QueryExpression|array<int, string|QueryExpression>|null $order_by Order by clause
199199
* @param string|null $alias Function result alias (will be automatically quoted)
200200
* @return QueryExpression
201201
*/

0 commit comments

Comments
 (0)