Skip to content

Commit 08067a3

Browse files
committed
removed some Form deprecation notices
1 parent 7d3d39a commit 08067a3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Extension/DataCollector/Type/DataCollectorTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
4949
*/
5050
public function getExtendedType()
5151
{
52-
return 'form';
52+
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
5353
}
5454
}

Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5555
*/
5656
public function getExtendedType()
5757
{
58-
return 'form';
58+
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
5959
}
6060
}

Tests/Extension/DataCollector/DataCollectorExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function setUp()
3636

3737
public function testLoadTypeExtensions()
3838
{
39-
$typeExtensions = $this->extension->getTypeExtensions('form');
39+
$typeExtensions = $this->extension->getTypeExtensions('Symfony\Component\Form\Extension\Core\Type\FormType');
4040

4141
$this->assertInternalType('array', $typeExtensions);
4242
$this->assertCount(1, $typeExtensions);

Tests/Extension/DataCollector/Type/DataCollectorTypeExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp()
3333

3434
public function testGetExtendedType()
3535
{
36-
$this->assertEquals('form', $this->extension->getExtendedType());
36+
$this->assertEquals('Symfony\Component\Form\Extension\Core\Type\FormType', $this->extension->getExtendedType());
3737
}
3838

3939
public function testBuildForm()

0 commit comments

Comments
 (0)