diff --git a/core/modules/user/tests/src/Traits/UserCreationTrait.php b/core/modules/user/tests/src/Traits/UserCreationTrait.php index 956bd3d7826..9d687fd4e5c 100644 --- a/core/modules/user/tests/src/Traits/UserCreationTrait.php +++ b/core/modules/user/tests/src/Traits/UserCreationTrait.php @@ -322,7 +322,7 @@ trait UserCreationTrait { * Grant permissions to a user role. * * @param \Drupal\user\RoleInterface $role - * The ID of a user role to alter. + * The user role entity to alter. * @param array $permissions * (optional) A list of permission names to grant. */