Issues/3410098: UserSession::hasPermission() and User::hasPermission() should...
requested to merge issue/drupal-3385845:3410098-usersessionhaspermission-and-userhaspermission into 11.x
Issues/3410098: UserSession::hasPermission() and User::hasPermission() should type-hint $permission to string
Closes #3410098