Skip to content

Commit f1b844b

Browse files
committed
Improve return phpdoc for static analysis and completion
1 parent 80dae86 commit f1b844b

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
@@ -54,6 +54,11 @@ class Builder extends EloquentBuilder
5454
'tomql',
5555
];
5656

57+
/**
58+
* @return ($function === null ? PipelineBuilder : self)
59+
*
60+
* @inheritdoc
61+
*/
5762
public function aggregate($function = null, $columns = ['*'])
5863
{
5964
$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)