Skip to content

Commit

Permalink
PhpEngine: remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 30, 2015
1 parent 1db740e commit 5d4b5b4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Symfony/Component/Templating/PhpEngine.php
Expand Up @@ -478,24 +478,6 @@ function ($value) {
self::$escaperCache = array();
}

/**
* Convert a string from one encoding to another.
*
* @param string $string The string to convert
* @param string $to The input encoding
* @param string $from The output encoding
*
* @return string The string with the new encoding
*
* @deprecated since 2.8, to be removed in 3.0. Use iconv() instead.
*/
public function convertEncoding($string, $to, $from)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use iconv() instead.', E_USER_DEPRECATED);

return iconv($from, $to, $string);
}

/**
* Gets the loader associated with this engine.
*
Expand Down

0 comments on commit 5d4b5b4

Please sign in to comment.