Skip to content

Commit 1bb5c08

Browse files
authored
Update conventions page to show correct function
1 parent a7e68a4 commit 1bb5c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributing/code/conventions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ A deprecation must also be triggered to help people with the migration
167167

168168
trigger_deprecation('symfony/package-name', '5.1', 'The "%s" class is deprecated, use "%s" instead.', Deprecated::class, Replacement::class);
169169

170-
When deprecating a whole class the ``trigger_error()`` call should be placed
170+
When deprecating a whole class the ``trigger_deprecation()`` call should be placed
171171
after the use declarations, like in this example from `ServiceRouterLoader`_::
172172

173173
namespace Symfony\Component\Routing\Loader\DependencyInjection;

0 commit comments

Comments
 (0)