8000 Show the FormType and FormTypeExtension in case of deprecated use of … · symfony/symfony@a276eb0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a276eb0

Browse files
committed
Show the FormType and FormTypeExtension in case of deprecated use of setDefaultOptions
1 parent 18f0dda commit a276eb0

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
@@ -212,7 +212,7 @@ public function getOptionsResolver()
212212
$isNewOverwritten = $reflector->getDeclaringClass()->getName() !== 'Symfony\Component\Form\AbstractType';
213213

214214
if ($isOldOverwritten && !$isNewOverwritten) {
215-
trigger_error('The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
215+
trigger_error(get_class($this->innerType).': The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
216216
}
217217

218218
foreach ($this->typeExtensions as $extension) {
@@ -225,7 +225,7 @@ public function getOptionsResolver()
225225
$isNewOverwritten = $reflector->getDeclaringClass()->getName() !== 'Symfony\Component\Form\AbstractTypeExtension';
226226

227227
if ($isOldOverwritten && !$isNewOverwritten) {
228-
trigger_error('The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0.', E_USER_DEPRECATED);
228+
trigger_error(get_class($extension).': The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0.', E_USER_DEPRECATED);
229229
}
230230
}
231231
}

0 commit comments

Comments
 (0)
0