Skip to content

Conversation

@pavolbiely
Copy link
Contributor

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?

@dg
Copy link
Member

dg commented Feb 20, 2019

Thanks

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants