spatie / laravel-query-builder

Easily build Eloquent queries from API requests
https://spatie.be/docs/laravel-query-builder
MIT License
4.06k stars 397 forks source link

static return type when returning $this #775

Closed lorenzolosa closed 2 years ago

lorenzolosa commented 2 years ago

I've changed the return types of some chainable methods in QueryBuilder from self to static, as it's more precise.

I've noticed this as I'm extending the QueryBuilder class with an additional method.

freekmurze commented 2 years ago

Thanks!