Commit 10fff855 authored by Ingo Fabbri's avatar Ingo Fabbri Committed by Benni Mack
Browse files

[BUGFIX] Add CompositeExpression argument docblock type-hint

This patch adds missing 'CompositeExpression' as union
type for QueryBuilder methods 'where()', 'andWhere()'
and 'orWhere()' to match the ability of the underlaying
doctrine/dbal QueryBuilder methods.

Resolves: #96457
Releases: main, 11.5, 10.4
Change-Id: Ib9330ffabcdc7680bfd5bb8a991cec60889c9773
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72878

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 0800ba7c
......@@ -791,7 +791,7 @@ class QueryBuilder
* Specifies one or more restrictions to the query result.
* Replaces any previously specified restrictions, if any.
*
* @param array<int,mixed> $predicates
* @param array<int,mixed>|CompositeExpression $predicates
* @return QueryBuilder This QueryBuilder instance.
*/
public function where(...$predicates): QueryBuilder
......@@ -811,7 +811,7 @@ class QueryBuilder
* Adds one or more restrictions to the query results, forming a logical
* conjunction with any previously specified restrictions.
*
* @param array<int,string> $where The query restrictions.
* @param array<int,string>|CompositeExpression $where The query restrictions.
*
* @return QueryBuilder This QueryBuilder instance.
*
......@@ -834,7 +834,7 @@ class QueryBuilder
* Adds one or more restrictions to the query results, forming a logical
* disjunction with any previously specified restrictions.
*
* @param array<int,string> $where The WHERE statement.
* @param array<int,string>|CompositeExpression $where The WHERE statement.
*
* @return QueryBuilder This QueryBuilder instance.
*
......@@ -927,7 +927,7 @@ class QueryBuilder
* Specifies a restriction over the groups of the query.
* Replaces any previous having restrictions, if any.
*
* @param array<int,string> $having The restriction over the groups.
* @param array<int,string>|CompositeExpression $having The restriction over the groups.
*
* @return QueryBuilder This QueryBuilder instance.
*/
......@@ -941,7 +941,7 @@ class QueryBuilder
* Adds a restriction over the groups of the query, forming a logical
* conjunction with any existing having restrictions.
*
* @param array<int,string> $having The restriction to append.
* @param array<int,string>|CompositeExpression $having The restriction to append.
*
* @return QueryBuilder This QueryBuilder instance.
*/
......@@ -956,7 +956,7 @@ class QueryBuilder
* Adds a restriction over the groups of the query, forming a logical
* disjunction with any existing having restrictions.
*
* @param array<int,string> $having The restriction to add.
* @param array<int,string>|CompositeExpression $having The restriction to add.
*
* @return QueryBuilder This QueryBuilder instance.
*/
......
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