8000 feature #16400 [3.0] [Templating] remove deprecated method (TomasVotr… · symfony/symfony@d05023b · GitHub
[go: up one dir, main page]

Skip to content

Commit d05023b

Browse files
committed
feature #16400 [3.0] [Templating] remove deprecated method (TomasVotruba)
This PR was merged into the 3.0-dev branch. Discussion ---------- [3.0] [Templating] remove deprecated method | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 5d4b5b4 PhpEngine: remove deprecated method
2 parents a42a872 + 5d4b5b4 commit d05023b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Symfony/Component/Templating/PhpEngine.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -478,24 +478,6 @@ function ($value) {
478478
self::$escaperCache = array();
479479
}
480480

481-
/**
482-
* Convert a string from one encoding to another.
483-
*
484-
* @param string $string The string to convert
485-
* @param string $to The input encoding
486-
* @param string $from The output encoding
487-
*
488-
* @return string The string with the new encoding
489-
*
490-
* @deprecated since 2.8, to be removed in 3.0. Use iconv() instead.
491-
*/
492-
public function convertEncoding($string, $to, $from)
493-
{
494-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use iconv() instead.', E_USER_DEPRECATED);
495-
496-
return iconv($from, $to, $string);
497-
}
498-
499481
/**
500482
* Gets the loader associated with this engine.
501483
*

0 commit comments

Comments
 (0)
0