minor #12650 add deprecation log (#12618) (phramz)

This PR was merged into the 2.7 branch.

Discussion
----------

add deprecation log (#12618)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12618
| License       | MIT
| Doc PR        |

Commits
-------

7d9afd7 add deprecation log (#12618)
This commit is contained in:
Fabien Potencier 2014-11-29 14:09:06 +01:00
commit 9cd6e6acc0
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ class FormHelper extends Helper
*/
public function enctype(FormView $view)
{
// Uncomment this as soon as the deprecation note should be shown
// trigger_error('The form helper $view[\'form\']->enctype() is deprecated since version 2.3 and will be removed in 3.0. Use $view[\'form\']->start() instead.', E_USER_DEPRECATED);
trigger_error('The form helper $view[\'form\']->enctype() is deprecated since version 2.3 and will be removed in 3.0. Use $view[\'form\']->start() instead.', E_USER_DEPRECATED);
return $this->renderer->searchAndRenderBlock($view, 'enctype');
}