[Form] Fix ResolvedFormType deprecation notices
This commit is contained in:
parent
ecdd681898
commit
baafb7a88b
@ -71,12 +71,12 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
// Anyone else should only override getBlockPrefix() if they actually
|
// Anyone else should only override getBlockPrefix() if they actually
|
||||||
// want to have a different block prefix than the default one
|
// want to have a different block prefix than the default one
|
||||||
if ($isOldOverwritten && !$isNewOverwritten) {
|
if ($isOldOverwritten && !$isNewOverwritten) {
|
||||||
@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);
|
@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);
|
||||||
}
|
}
|
||||||
|
|
||||||
$blockPrefix = $innerType->getBlockPrefix();
|
$blockPrefix = $innerType->getBlockPrefix();
|
||||||
} else {
|
} else {
|
||||||
@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);
|
@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);
|
||||||
|
|
||||||
// Deal with classes that don't extend AbstractType
|
// Deal with classes that don't extend AbstractType
|
||||||
// Calculate block prefix from the FQCN by default
|
// Calculate block prefix from the FQCN by default
|
||||||
|
Reference in New Issue
Block a user