Skip to content

Commit ab7ca55

Browse files
committed
Improve return phpdoc for static analysis and completion
1 parent 01cfc1a commit ab7ca55

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Eloquent/Builder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class Builder extends EloquentBuilder
5656
'tomql',
5757
];
5858

59+
/**
60+
* @return ($function === null ? PipelineBuilder : self)
61+
*
62+
* @inheritdoc
63+
*/
5964
public function aggregate($function = null, $columns = ['*'])
6065
{
6166
$result = $this->toBase()->aggregate($function, $columns);

src/Eloquent/Model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
use function uniqid;
5050
use function var_export;
5151

52+
/** @mixin Builder */
5253
abstract class Model extends BaseModel
5354
{
5455
use HybridRelations;

0 commit comments

Comments
 (0)