Skip to content

Filters: remove string type hints from replace filter#189

Merged
dg merged 2 commits into
nette:masterfrom
pavolbiely:master
Feb 20, 2019
Merged

Filters: remove string type hints from replace filter#189
dg merged 2 commits into
nette:masterfrom
pavolbiely:master

Conversation

@pavolbiely

Copy link
Copy Markdown
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

dg commented Feb 20, 2019

Copy link
Copy Markdown
Member

Thanks

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

adaamz commented Feb 20, 2019

Copy link
Copy Markdown

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