Skip to content

Commit cd49061

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Update conventions page to show correct function
2 parents 7869c1d + a8c5911 commit cd49061

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)