API page: https://api.drupal.org/api/drupal/core%21modules%21user%21tests%21src%21...

> \Drupal\user\RoleInterface $role: The ID of a user role to alter.

It's not an ID, since it's typehint on an interface. It's the role entity itself.

CommentFileSizeAuthor
#2 3068971-2.patch635 byteschristinlepson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

christinlepson’s picture

We can change
>> The ID of a user role to alter.
to
>> The user role entity to alter.

christinlepson’s picture

Status: Active » Needs review
joachim’s picture

Status: Needs review » Reviewed & tested by the community

Perfect, thanks!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 64ee17e and pushed to 8.8.x. Thanks!

  • catch committed 64ee17e on 8.8.x
    Issue #3068971 by christinlepson, joachim: error in param docs for...
catch’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.