File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
lib/Doctrine/ODM/MongoDB/Aggregation Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -236,10 +236,8 @@ public function indexStats(): Stage\IndexStats
236
236
* Limits the number of documents passed to the next stage in the pipeline.
237
237
*
238
238
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/limit/
239
- *
240
- * @return Stage\Limit
241
239
*/
242
- public function limit (int $ limit )
240
+ public function limit (int $ limit ): self
243
241
{
244
242
return $ this ->builder ->limit ($ limit );
245
243
}
@@ -434,10 +432,8 @@ public function sortByCount(string $expression): Stage\SortByCount
434
432
*
435
433
* @param array<string, int|string>|string $fieldName Field name or array of field/order pairs
436
434
* @param int|string $order Field order (if one field is specified)
437
- *
438
- * @return Stage\Sort
439
435
*/
440
- public function sort ($ fieldName , $ order = null )
436
+ public function sort ($ fieldName , $ order = null ): self
441
437
{
442
438
return $ this ->builder ->sort ($ fieldName , $ order );
443
439
}
You can’t perform that action at this time.
0 commit comments