diff --git a/reference/constraints/PasswordStrength.rst b/reference/constraints/PasswordStrength.rst
index 671b5f495ef..60125a763a1 100644
--- a/reference/constraints/PasswordStrength.rst
+++ b/reference/constraints/PasswordStrength.rst
@@ -178,7 +178,7 @@ service to use your own estimator:
class: App\Validator\CustomPasswordStrengthEstimator
Symfony\Component\Validator\Constraints\PasswordStrengthValidator:
- arguments: [!service_closure '@custom_password_strength_estimator']
+ arguments: [!closure '@custom_password_strength_estimator']
.. code-block:: xml
@@ -192,7 +192,7 @@ service to use your own estimator:
-
+
@@ -210,5 +210,5 @@ service to use your own estimator:
$services->set('custom_password_strength_estimator', CustomPasswordStrengthEstimator::class);
$services->set(PasswordStrengthValidator::class)
- ->args([service_closure('custom_password_strength_estimator')]);
+ ->args([closure('custom_password_strength_estimator')]);
};