From 19c3060827f20117345123a523f50a1f88dcfee7 Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Mon, 6 May 2024 10:27:42 +0200 Subject: [PATCH] Added missing return type --- CHANGELOG.md | 2 ++ .../src/CustomWebformEntityListBuilder.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d15a292c..4160c068 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa ## [Unreleased] +- Added missing return type. + ## [3.15.0] 2024-05-03 - Added webform encryption modules diff --git a/modules/os2forms_webform_list/src/CustomWebformEntityListBuilder.php b/modules/os2forms_webform_list/src/CustomWebformEntityListBuilder.php index 94e64fbb..1eb27312 100644 --- a/modules/os2forms_webform_list/src/CustomWebformEntityListBuilder.php +++ b/modules/os2forms_webform_list/src/CustomWebformEntityListBuilder.php @@ -2,6 +2,7 @@ namespace Drupal\os2forms_webform_list; +use Drupal\Core\Entity\Query\QueryInterface; use Drupal\webform\WebformEntityListBuilder; /** @@ -27,7 +28,7 @@ class CustomWebformEntityListBuilder extends WebformEntityListBuilder { * @return \Drupal\Core\Entity\Query\QueryInterface * An entity query. */ - protected function getQuery($keys = '', $category = '', $state = '') { + protected function getQuery($keys = '', $category = '', $state = ''): QueryInterface { $query = parent::getQuery($keys, $category, $state); // Setup a required condition for the list builder to respect webform update