@@ -122,7 +122,7 @@ public function __clone()
122
122
/**
123
123
* Add one or more $and clauses to the current query.
124
124
*
125
- * You can create a new expression using the {@link Builder::expr ()} method.
125
+ * You can create a new expression using the {@link Builder::createAggregationExpression ()} method.
126
126
*
127
127
* @see Expr::addAnd()
128
128
* @see https://docs.mongodb.com/manual/reference/operator/and/
@@ -140,7 +140,7 @@ public function addAnd($expression, ...$expressions): self
140
140
/**
141
141
* Add one or more $nor clauses to the current query.
142
142
*
143
- * You can create a new expression using the {@link Builder::expr ()} method.
143
+ * You can create a new expression using the {@link Builder::createAggregationExpression ()} method.
144
144
*
145
145
* @see Expr::addNor()
146
146
* @see https://docs.mongodb.com/manual/reference/operator/nor/
@@ -158,7 +158,7 @@ public function addNor($expression, ...$expressions): self
158
158
/**
159
159
* Add one or more $or clauses to the current query.
160
160
*
161
- * You can create a new expression using the {@link Builder::expr ()} method.
161
+ * You can create a new expression using the {@link Builder::createAggregationExpression ()} method.
162
162
*
163
163
* @see Expr::addOr()
164
164
* @see https://docs.mongodb.com/manual/reference/operator/or/
@@ -430,7 +430,7 @@ public function distinct(string $field): self
430
430
/**
431
431
* Specify $elemMatch criteria for the current field.
432
432
*
433
- * You can create a new expression using the {@link Builder::expr ()} method.
433
+ * You can create a new expression using the {@link Builder::createAggregationExpression ()} method.
434
434
*
435
435
* @see Expr::elemMatch()
436
436
* @see https://docs.mongodb.com/manual/reference/operator/elemMatch/
@@ -465,6 +465,9 @@ public function equals($value): self
465
465
* excluded.
466
466
*
467
467
* @param string[]|string $fieldName,...
468
+ * @param null|string|string[] $fieldName
469
+ *
470
+ * @psalm-param 'comments'|array{0: 'name', 1: 'issues'}|null $fieldName
468
471
*/
469
472
public function exclude ($ fieldName = null ): self
470
473
{
@@ -1054,7 +1057,7 @@ public function nearSphere($x, $y = null): self
1054
1057
/**
1055
1058
* Negates an expression for the current field.
1056
1059
*
1057
- * You can create a new expression using the {@link Builder::expr ()} method.
1060
+ * You can create a new expression using the {@link Builder::createAggregationExpression ()} method.
1058
1061
*
1059
1062
* @see Expr::not()
1060
1063
* @see https://docs.mongodb.com/manual/reference/operator/not/
@@ -1288,7 +1291,9 @@ public function returnNew(bool $bool = true): self
1288
1291
/**
1289
1292
* Set one or more fields to be included in the query projection.
1290
1293
*
1291
- * @param string[]|string $fieldName,...
1294
+ * @param null|string|string[] $fieldName
1295
+ *
1296
+ * @return Builder
1292
1297
*/
1293
1298
public function select ($ fieldName = null ): self
1294
1299
{
0 commit comments