Skip to content

Commit caa59cd

Browse files
andrew-dembnicolas-grekas
authored andcommitted
Use symfony/deprecation-contracts instead of trigger_error
1 parent 74b213d commit caa59cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private function addFormSection(ArrayNodeDefinition $rootNode, callable $enableI
214214
->validate()
215215
->ifTrue()
216216
->then(function ($v) {
217-
@trigger_error('Since symfony/framework-bundle 5.2: Setting the "framework.form.legacy_error_messages" option to "true" is deprecated. It will have no effect as of Symfony 6.0.', \E_USER_DEPRECATED);
217+
trigger_deprecation('symfony/framework-bundle', '5.2', 'Setting the "framework.form.legacy_error_messages" option to "true" is deprecated. It will have no effect as of Symfony 6.0.');
218218

219219
return $v;
220220
})

0 commit comments

Comments
 (0)