Skip to content

Commit 8c10393

Browse files
authored
feat: 🎸 Improve macro definition for PHPStan code analysis
1 parent 13f0be9 commit 8c10393

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/MacroServiceProvider.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ class MacroServiceProvider extends ServiceProvider
1515
/**
1616
* Register "lampager" macros.
1717
*/
18-
public function register()
18+
public function register(): void
1919
{
20-
QueryBuilder::macro('lampager', function () {
20+
QueryBuilder::macro('lampager', function (): Paginator {
2121
/* @var \Illuminate\Database\Query\Builder $this */
2222
return Paginator::create($this);
2323
});
24-
EloquentBuilder::macro('lampager', function () {
24+
EloquentBuilder::macro('lampager', function (): Paginator {
2525
/* @var \Illuminate\Database\Eloquent\Builder $this */
2626
return Paginator::create($this);
2727
});
28-
Relation::macro('lampager', function () {
28+
Relation::macro('lampager', function (): Paginator {
2929
/* @var \Illuminate\Database\Eloquent\Relations\Relation $this */
3030
return Paginator::create($this);
3131
});

0 commit comments

Comments
 (0)