diff -u b/core/modules/node/src/Plugin/views/argument/Vid.php b/core/modules/node/src/Plugin/views/argument/Vid.php --- b/core/modules/node/src/Plugin/views/argument/Vid.php +++ b/core/modules/node/src/Plugin/views/argument/Vid.php @@ -31,13 +31,6 @@ /** * Constructs a \Drupal\node\Plugin\views\argument\Vid object. * - * Note, for BC reasons, we cannot typehint the last parameter since this - * function used to take 5 arguments, including the 'database' service as the - * fourth parameter. - * - * @todo Clean this up in drupal:10.0.0. - * @see https://www.drupal.org/node/3189241 - * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id @@ -46,9 +39,6 @@ * The plugin implementation definition. * @param \Drupal\node\NodeStorageInterface $node_storage * The node storage. - * - * @throws \InvalidArgumentException - * Thrown when the $node_storage parameter is not of the correct type. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, $node_storage) { parent::__construct($configuration, $plugin_id, $plugin_definition); @@ -57,9 +47,6 @@ @trigger_error('Passing the database service to ' . __METHOD__ . '() is deprecated in drupal:9.2.0 and will be removed before drupal:10.0.0. See https://www.drupal.org/node/3178412', E_USER_DEPRECATED); $node_storage = func_get_arg(4); } - if (!$node_storage instanceof NodeStorageInterface) { - throw new \InvalidArgumentException('The fourth argument must implement \Drupal\node\NodeStorageInterface.'); - } $this->nodeStorage = $node_storage; }