Skip to content

Commit 7caf7df

Browse files
[2.3] Cleanup deprecations
1 parent 038ce9a commit 7caf7df

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function registerBundles()
7474
return include $filename;
7575
}
7676

77-
public function init()
78-
{
79-
}
80-
8177
public function getRootDir()
8278
{
8379
return __DIR__;

Tests/Templating/Helper/FormHelperDivLayoutTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ protected function renderForm(FormView $view, array $vars = array())
7777

7878
protected function renderEnctype(FormView $view)
7979
{
80-
return (string) $this->engine->get('form')->enctype($view);
80+
if (!method_exists($form = $this->engine->get('form'), 'enctype')) {
81+
$this->markTestSkipped(sprintf("Deprecated method %s->enctype() is not implemented.", get_class($form)));
82+
}
83+
84+
return (string) $form->enctype($view);
8185
}
8286

8387
protected function renderLabel(FormView $view, $label = null, array $vars = array())

Tests/Templating/Helper/FormHelperTableLayoutTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ protected function renderForm(FormView $view, array $vars = array())
7878

7979
protected function renderEnctype(FormView $view)
8080
{
81-
return (string) $this->engine->get('form')->enctype($view);
81+
if (!method_exists($form = $this->engine->get('form'), 'enctype')) {
82+
$this->markTestSkipped(sprintf("Deprecated method %s->enctype() is not implemented.", get_class($form)));
83+
}
84+
85+
return (string) $form->enctype($view);
8286
}
8387

8488
protected function renderLabel(FormView $view, $label = null, array $vars = array())

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"symfony/css-selector": "~2.0,>=2.0.5",
3636
"symfony/dom-crawler": "~2.0,>=2.0.5",
3737
"symfony/finder": "~2.0,>=2.0.5",
38-
"symfony/locale": "~2.0,>=2.0.5",
38+
"symfony/intl": "~2.3",
3939
"symfony/security": "~2.3",
4040
"symfony/form": "~2.3.0,>=2.3.5",
4141
"symfony/class-loader": "~2.1",

0 commit comments

Comments
 (0)