@@ -451,7 +451,7 @@ public function add($sqlPartName, $sqlPart, $append = false)
451
451
* Specifies an item that is to be returned in the query result.
452
452
* Replaces any previously specified selections, if any.
453
453
*
454
- * USING AN ARRAY ARGUMENT IS DEPRECATED. This feature will be removed in the next major version .
454
+ * USING AN ARRAY ARGUMENT IS DEPRECATED. Pass each value as an individual argument .
455
455
*
456
456
* <code>
457
457
* $qb = $conn->createQueryBuilder()
@@ -460,11 +460,12 @@ public function add($sqlPartName, $sqlPart, $append = false)
460
460
* ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id');
461
461
* </code>
462
462
*
463
- * @param string ...$select The selection expressions.
463
+ * @param string|string[]|null $select The selection expression. USING AN ARRAY OR NULL IS DEPRECATED.
464
+ * Pass each value as an individual argument. Pass at least one value.
464
465
*
465
466
* @return $this This QueryBuilder instance.
466
467
*/
467
- public function select ($ select = null )
468
+ public function select ($ select = null /*, string ...$selects*/ )
468
469
{
469
470
$ this ->type = self ::SELECT ;
470
471
@@ -499,7 +500,7 @@ public function distinct() : self
499
500
/**
500
501
* Adds an item that is to be returned in the query result.
501
502
*
502
- * USING AN ARRAY ARGUMENT IS DEPRECATED. This feature will be removed in the next major version .
503
+ * USING AN ARRAY ARGUMENT IS DEPRECATED. Pass each value as an individual argument .
503
504
*
504
505
* <code>
505
506
* $qb = $conn->createQueryBuilder()
@@ -509,11 +510,12 @@ public function distinct() : self
509
510
* ->leftJoin('u', 'phonenumbers', 'u.id = p.user_id');
510
511
* </code>
511
512
*
512
- * @param string ...$select The selection expression.
513
+ * @param string|string[]|null $select The selection expression. USING AN ARRAY OR NULL IS DEPRECATED.
514
+ * Pass each value as an individual argument. Pass at least one value.
513
515
*
514
516
* @return $this This QueryBuilder instance.
515
517
*/
516
- public function addSelect ($ select = null )
518
+ public function addSelect ($ select = null /*, string ...$selects*/ )
517
519
{
518
520
$ this ->type = self ::SELECT ;
519
521
@@ -873,7 +875,7 @@ public function orWhere($where)
873
875
* Specifies a grouping over the results of the query.
874
876
* Replaces any previously specified groupings, if any.
875
877
*
876
- * USING AN ARRAY ARGUMENT IS DEPRECATED. This feature will be removed in the next major version .
878
+ * USING AN ARRAY ARGUMENT IS DEPRECATED. Pass each value as an individual argument .
877
879
*
878
880
* <code>
879
881
* $qb = $conn->createQueryBuilder()
@@ -882,11 +884,12 @@ public function orWhere($where)
882
884
* ->groupBy('u.id');
883
885
* </code>
884
886
*
885
- * @param string ...$groupBy The grouping expression.
887
+ * @param string|string[] $groupBy The grouping expression. USING AN ARRAY IS DEPRECATED.
888
+ * Pass each value as an individual argument.
886
889
*
887
890
* @return $this This QueryBuilder instance.
888
891
*/
889
- public function groupBy ($ groupBy )
892
+ public function groupBy ($ groupBy/*, string ...$groupBys*/ )
890
893
{
891
894
if (empty ($ groupBy )) {
892
895
return $ this ;
@@ -900,7 +903,7 @@ public function groupBy($groupBy)
900
903
/**
901
904
* Adds a grouping expression to the query.
902
905
*
903
- * USING AN ARRAY ARGUMENT IS DEPRECATED. This feature will be removed in the next major version .
906
+ * USING AN ARRAY ARGUMENT IS DEPRECATED. Pass each value as an individual argument .
904
907
*
905
908
* <code>
906
909
* $qb = $conn->createQueryBuilder()
@@ -910,11 +913,12 @@ public function groupBy($groupBy)
910
913
* ->addGroupBy('u.createdAt');
911
914
* </code>
912
915
*
913
- * @param string ...$groupBy The grouping expression.
916
+ * @param string|string[] $groupBy The grouping expression. USING AN ARRAY IS DEPRECATED.
917
+ * Pass each value as an individual argument.
914
918
*
915
919
* @return $this This QueryBuilder instance.
916
920
*/
917
- public function addGroupBy ($ groupBy )
921
+ public function addGroupBy ($ groupBy/*, string ...$groupBys*/ )
918
922
{
919
923
if (empty ($ groupBy )) {
920
924
return $ this ;
0 commit comments