Skip to content

Callable checks for query builder causes trouble with built-in Laravel functions #277

@Radiergummi

Description

@Radiergummi

We discovered that when trying to work with index fields that have the same name as global functions, PHP will report them as callable, and the library will treat ordinary field names as custom condition callbacks. This messes up query building and makes it impossible to use fields such as url.
The check should be narrowed to Closures to prevent those issues from cropping up.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions