Skip to content

Conversation

@JohnathonKoster
Copy link
Contributor

This PR resolves a parser error when using the shorthand array syntax within method calls at the beginning of an Antlers tag/block.

Before this change, the following would throw an error:

{{ object:method(['some', 'args']) }}

This PR adjusts the PathParser allowing the syntax to work without resorting to the following workarounds:

{{ ; object:method(['some', 'args']) }}
{{ object:method(arr('some', 'args')) }}

@jasonvarga jasonvarga merged commit f640489 into statamic:5.x Aug 7, 2025
25 checks passed
@daun
Copy link
Contributor

daun commented Aug 8, 2025

@JohnathonKoster This is the first I've ever read of method calls in Antlers. Nice. Is this documented somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants