8000 [3.0] [Templating] remove deprecated method by TomasVotruba · Pull Request #16400 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[3.0] [Templating] remove deprecated method #16400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/Symfony/Component/Templating/PhpEngine.php
Original file line number Diff line number Diff line change
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