10000 [Form] Fix ResolvedFormType deprecation notices · symfony/symfony@baafb7a · GitHub
[go: up one dir, main page]

Skip to content

Commit baafb7a

Browse files
[Form] Fix ResolvedFormType deprecation notices
1 parent ecdd681 commit baafb7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/ResolvedFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public function __construct(FormTypeInterface $innerType, array $typeExtensions
7171
// Anyone else should only override getBlockPrefix() if they actually
7272
// want to have a different block prefix than the default one
7373
if ($isOldOverwritten && !$isNewOverwritten) {
74-
@trigger_error(get_class($this->innerType).': The FormTypeInterface::getName() method is deprecated since version 2.8 and will be removed in 3.0. Remove it from your classes. Use getBlockPrefix() if you want to customize the template block prefix. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
74+
@trigger_error(get_class($innerType).': The FormTypeInterface::getName() method is deprecated since version 2.8 and will be removed in 3.0. Remove it from your classes. Use getBlockPrefix() if you want to customize the template block prefix. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
7575
}
7676

7777
$blockPrefix = $innerType->getBlockPrefix();
7878
} else {
79-
@trigger_error(get_class($this->innerType).': The FormTypeInterface::getBlockPrefix() method will be added in version 3.0. You should extend AbstractType or add it to your implementation.', E_USER_DEPRECATED);
79+
@trigger_error(get_class($innerType).': The FormTypeInterface::getBlockPrefix() method will be added in version 3.0. You should extend AbstractType or add it to your implementation.', E_USER_DEPRECATED);
8080

8181
// Deal with classes that don't extend AbstractType
8282
// Calculate block prefix from the FQCN by default

0 commit comments

Comments
 (0)
0