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

Filters: remove string type hints from replace filter #189

merged 2 commits into from Feb 20, 2019


Copy link

@pavolbiely pavolbiely commented Feb 20, 2019

A long time ago it was possible to use the replace filter like this:
{$var|replace:[' ','+']:['','00']}

Today it ends up like this:
Argument 3 passed to Latte\Runtime\Filters::replace() must be of the type string, array given

Is it possible to avoid this BC break?

Copy link

@dg dg commented Feb 20, 2019


@dg dg merged commit 2c310b9 into nette:master Feb 20, 2019
1 check passed
Copy link

@adaamz adaamz commented Feb 20, 2019

Isnt string[] better than general array?

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

Successfully merging this pull request may close these issues.

None yet

3 participants