Skip to content

Commit fd37ce0

Browse files
authored
ENGCOM-7266: Fix type hint for Select::where #27547
2 parents 15dc874 + f22a799 commit fd37ce0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/internal/Magento/Framework/DB/Select.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ public function __construct(
9191
* $select->where('id = :id');
9292
* </code>
9393
*
94+
* You may also construct IN statements:
95+
*
96+
* <code>
97+
* $select->where('entity_id IN (?)', ['1', '2', '3']);
98+
* </code>
99+
*
94100
* Note that it is more correct to use named bindings in your
95101
* queries for values other than strings. When you use named
96102
* bindings, don't forget to pass the values when actually
@@ -101,7 +107,7 @@ public function __construct(
101107
* </code>
102108
*
103109
* @param string $cond The WHERE condition.
104-
* @param string $value OPTIONAL A single value to quote into the condition.
110+
* @param string|array|null $value OPTIONAL An optional single or array value to quote into the condition.
105111
* @param string|int|null $type OPTIONAL The type of the given value
106112
* @return \Magento\Framework\DB\Select
107113
*/

0 commit comments

Comments
 (0)