diff -u b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php --- b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php +++ b/core/modules/user/src/Plugin/views/argument_default/CurrentUser.php @@ -42,7 +42,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $current_user = NULL) { parent::__construct($configuration, $plugin_id, $plugin_definition); if ($current_user === NULL) { - @trigger_error('Calling' . __CLASS__ . '::__construct() without the $currentUser argument is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3347878', E_USER_DEPRECATED); + @trigger_error('Calling' . __CLASS__ . '::__construct() without the $current_user argument is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3347878', E_USER_DEPRECATED); $current_user = \Drupal::currentUser(); } $this->currentUser = $current_user;