Skip to content

[6.x] Throw parser error when mixing pipe and shorthand modifier syntax - #14892

Merged
jasonvarga merged 3 commits into
statamic:6.xfrom
marcorieser:feat/antlers-parser-invalid-modifier-syntax-error
Jul 13, 2026
Merged

[6.x] Throw parser error when mixing pipe and shorthand modifier syntax#14892
jasonvarga merged 3 commits into
statamic:6.xfrom
marcorieser:feat/antlers-parser-invalid-modifier-syntax-error

Conversation

@marcorieser

@marcoriesermarcorieser commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

This implements the suggestion John made in the issue comment. The PR targets 6.x, because the syntax was not working before (and silently failed), but now it throws an exception.

Closes: #13080

marcorieserand others added 3 commits June 28, 2026 14:44
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Removes the redundant shorthand-parameter render test (already covered) and
moves the pipe-modifier render test alongside the mixed-modifier error tests.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga
jasonvarga enabled auto-merge (squash) July 13, 2026 20:56
@jasonvarga
jasonvarga merged commit 6a81472 into statamic:6.xJul 13, 2026
19 checks passed
@marcorieser
marcorieser deleted the feat/antlers-parser-invalid-modifier-syntax-error branch July 14, 2026 01:39
@wackget

Copy link
Copy Markdown

@marcorieser Are you sure this failed silently before? I've got a few tags which have been working fine until this update caused them to throw an error.

E.g. {{ last_modified | format="U" }} works fine

@marcorieser

Copy link
Copy Markdown
ContributorAuthor

@marcorieser Are you sure this failed silently before? I've got a few tags which have been working fine until this update caused them to throw an error.

E.g. {{ last_modified | format="U" }} works fine

@wackget I can confirm, this was not silently failing. Opened a PR to revert the changes: #15073

Sign up for freeto 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.

Sorting a complex array returns empty

3 participants

@marcorieser@wackget@jasonvarga