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
This commit is contained in:
commit
d05023b125
@ -478,24 +478,6 @@ class PhpEngine implements EngineInterface, \ArrayAccess
|
||||
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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user