mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
updated CHANGELOG
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
* 1.21.2 (2015-XX-XX)
|
||||
|
||||
* n/a
|
||||
* added Traversable support for replace, merge, and sort
|
||||
* deprecated support for character by character replacement for the "replace" filter
|
||||
|
||||
* 1.21.1 (2015-08-26)
|
||||
|
||||
|
||||
@@ -563,7 +563,7 @@ function twig_replace_filter($str, $from, $to = null)
|
||||
if ($from instanceof Traversable) {
|
||||
$from = iterator_to_array($from);
|
||||
} elseif (is_string($from) && is_string($to)) {
|
||||
@trigger_error('Using "replace" with character by character replacement is deprecated and will be removed in Twig 2.x', E_USER_DEPRECATED);
|
||||
@trigger_error('Using "replace" with character by character replacement is deprecated and will be removed in Twig 2.0', E_USER_DEPRECATED);
|
||||
|
||||
return strtr($str, $from, $to);
|
||||
} elseif (!is_array($from)) {
|
||||
|
||||
Reference in New Issue
Block a user