spatie / laravel-query-builder

Easily build Eloquent queries from API requests

Home Page:https://spatie.be/docs/laravel-query-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP8.1 passing null to explode() is deprecated warning for $includeParts

steven-fox opened this issue · comments

Identical to PR #702 (commit), the include parameter on a QueryBuilderRequest can be null and should be checked before passing to the explode() function.

if (! is_array($includeParts)) {

Update to if (! is_array($includeParts) && ! is_null($includeParts)) {

Currently bogged with other work but can try to make a PR soon if someone doesn't beat me to it.