Change record status: 
Project: 
Introduced in branch: 
10.3.x
Introduced in version: 
10.3.0
Description: 

\Drupal\user\Plugin\views\filter\Roles requires the LoggerInterface().

This allow the logging of an warning when a view depends on a role but that role does not exist.

  public function __construct(
    array $configuration,
    $plugin_id,
    $plugin_definition,
    protected readonly RoleStorageInterface $roleStorage,
    protected ?LoggerInterface $logger,
  ) {
Impacts: 
Module developers