Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invoke filter #4518

Merged
merged 9 commits into from
Jan 12, 2025
Merged

Add invoke filter #4518

merged 9 commits into from
Jan 12, 2025

Conversation

Lorenzschaef
Copy link
Contributor

Adds a new filter invoke, to invoke arrow functions and other php callables.

See the discussion here: #4378 (comment)

@Lorenzschaef Lorenzschaef changed the title invoke filter Add invoke filter Dec 26, 2024
@xabbuh
Copy link
Contributor

xabbuh commented Dec 30, 2024

This change also deserves an entry in the changelog for 3.19.0.

@Lorenzschaef
Copy link
Contributor Author

@xabbuh, I can add that.

What about the documentation? Should I also add a page to the filter reference in the docs? And mention it in the section about arrow functions? Or do you have something different in mind?

@xabbuh
Copy link
Contributor

xabbuh commented Dec 30, 2024

Doing what you suggested looks good to me.

src/Extension/CoreExtension.php Outdated Show resolved Hide resolved
src/Extension/CoreExtension.php Outdated Show resolved Hide resolved
src/Extension/CoreExtension.php Outdated Show resolved Hide resolved
@Lorenzschaef Lorenzschaef requested a review from fabpot January 7, 2025 17:50
doc/filters/invoke.rst Outdated Show resolved Hide resolved
doc/filters/invoke.rst Outdated Show resolved Hide resolved
doc/filters/invoke.rst Outdated Show resolved Hide resolved
doc/templates.rst Outdated Show resolved Hide resolved
doc/filters/invoke.rst Outdated Show resolved Hide resolved
@Lorenzschaef Lorenzschaef requested a review from fabpot January 9, 2025 07:03
doc/templates.rst Outdated Show resolved Hide resolved
doc/filters/invoke.rst Outdated Show resolved Hide resolved
@fabpot
Copy link
Contributor

fabpot commented Jan 12, 2025

Thank you @Lorenzschaef.

@fabpot fabpot merged commit 65fa0c6 into twigphp:3.x Jan 12, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants