Skip to content

Commit 01d482e

Browse files
author
Jannik Zschiesche
committed
Improve form deprecation notices to mention the affected service ids
1 parent 23e1d38 commit 01d482e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Compiler/FormPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public function process(ContainerBuilder $container)
6464
if (isset($tag[0]['extended_type'])) {
6565
$extendedType = $tag[0]['extended_type'];
6666
} elseif (isset($tag[0]['alias'])) {
67-
@trigger_error('The alias option of the form.type_extension tag is deprecated since version 2.8 and will be removed in 3.0. Use the extended_type option instead.', E_USER_DEPRECATED);
67+
@trigger_error(sprintf('The alias option of the form.type_extension tag of service "%s" is deprecated since version 2.8 and will be removed in 3.0. Use the extended_type option instead.', $serviceId), E_USER_DEPRECATED);
6868
$extendedType = $tag[0]['alias'];
6969
} else {
70-
@trigger_error('The extended_type option of the form.type_extension tag is required since version 2.8.', E_USER_DEPRECATED);
70+
@trigger_error(sprintf('The extended_type option of the form.type_extension tag of service "%s" is required since version 2.8.', $serviceId), E_USER_DEPRECATED);
7171
$extendedType = $serviceId;
7272
}
7373

0 commit comments

Comments
 (0)