Bug description
Since upgrading to 5.6.0 I'm seeing this error coming from the CoreModifiers::select() method:
method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
The site isn't using the select modifier, but I've tracked the issue down to usage of the select param in the nav tag:
{{ nav:mainselect="title|url" }}If I remove that param it works. It seems to be interpreting the param as a modifier.
How to reproduce
Try to use the nav tag with the select param.
Logs
No response
Environment
StatamicAddons: 10Sites: 1Stache Watcher: DisabledStatic Caching: DisabledVersion: 5.6.0 PROStatamic Addonsduncanmcclean/guest-entries: 4.0.1duncanmcclean/simple-commerce: 7.2.0jacksleight/statamic-bard-texstyle: 3.2.2jonassiewertsen/statamic-livewire: 3.3.1statamic-rad-pack/runway: 7.1.0stillat/relationships: 2.2.0studio1902/statamic-peak-browser-appearance: 3.4.1studio1902/statamic-peak-commands: 3.2.0studio1902/statamic-peak-seo: 7.5.0studio1902/statamic-peak-tools: 4.4.2
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
Since upgrading to 5.6.0 I'm seeing this error coming from the
CoreModifiers::select()method:The site isn't using the select modifier, but I've tracked the issue down to usage of the select param in the nav tag:
{{ nav:mainselect="title|url" }}If I remove that param it works. It seems to be interpreting the param as a modifier.
How to reproduce
Try to use the nav tag with the select param.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response