Skip to content

Commit 6fa3a0c

Browse files
committed
Fix return type for overridden methods
1 parent 9490058 commit 6fa3a0c

File tree

1 file changed

+2
-6
lines changed
  • lib/Doctrine/ODM/MongoDB/Aggregation

1 file changed

+2
-6
lines changed

lib/Doctrine/ODM/MongoDB/Aggregation/Stage.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,8 @@ public function indexStats(): Stage\IndexStats
236236
* Limits the number of documents passed to the next stage in the pipeline.
237237
*
238238
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/limit/
239-
*
240-
* @return Stage\Limit
241239
*/
242-
public function limit(int $limit)
240+
public function limit(int $limit): self
243241
{
244242
return $this->builder->limit($limit);
245243
}
@@ -434,10 +432,8 @@ public function sortByCount(string $expression): Stage\SortByCount
434432
*
435433
* @param array<string, int|string>|string $fieldName Field name or array of field/order pairs
436434
* @param int|string $order Field order (if one field is specified)
437-
*
438-
* @return Stage\Sort
439435
*/
440-
public function sort($fieldName, $order = null)
436+
public function sort($fieldName, $order = null): self
441437
{
442438
return $this->builder->sort($fieldName, $order);
443439
}

0 commit comments

Comments
 (0)