diff --git a/modules/local_translation_content/local_translation_content.module b/modules/local_translation_content/local_translation_content.module
index 6b782f5..46bffd8 100644
--- a/modules/local_translation_content/local_translation_content.module
+++ b/modules/local_translation_content/local_translation_content.module
@@ -10,14 +10,14 @@ use Drupal\Core\Entity\ContentEntityInterface;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\local_translation_content\Controller\LocalTranslationContentLanguageCtrl;
 use Drupal\local_translation_content\Plugin\views\filter\TranslationLanguageLimitedToTranslationSkills;
-use Drupal\views\Plugin\views\query\Sql;
+use Drupal\views\Plugin\views\query\QueryPluginBase;
 use Drupal\views\ViewExecutable;
 use Drupal\node\Entity\Node;
 
 /**
  * Implements hook_views_query_alter().
  */
-function local_translation_content_views_query_alter(ViewExecutable $view, Sql $query) {
+function local_translation_content_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
   if (!empty($view->filter)) {
     // Prepare available language skills for the current user.
     $skills = \Drupal::service('local_translation.user_skills')
