diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index fc40f6a32e09285fcd1cf5df4236cef09691a8e3..87739a90c96c9381a6b6936abafdcb39336c9e95 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -8,6 +8,7 @@ use Drupal\Core\Routing\RouteProviderInterface; use Drupal\Core\Session\AccountInterface; use Drupal\views\Plugin\views\display\DisplayRouterInterface; +use Drupal\views\Plugin\views\query\QueryPluginBase; use Drupal\views\Plugin\ViewsPluginManager; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -219,7 +220,7 @@ class ViewExecutable { * * @var \Drupal\views\Plugin\views\query\QueryPluginBase */ - public $query = NULL; + public ?QueryPluginBase $query = NULL; /** * The used pager plugin used by the current executed view.