Skip to content

Commit

Permalink
Merge pull request #104 from itk-dev/feature/add-missing-return-type
Browse files Browse the repository at this point in the history
Added missing return type
  • Loading branch information
jekuaitk authored May 14, 2024
2 parents 72d41f0 + d6bb57c commit 05067a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before starting to add changes. Use example [placed in the end of the page](#exa

## [Unreleased]

- Added missing return type.
- Added new webform submission storage class to handle enable both encryption
and revision at the same time.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Drupal\os2forms_webform_list;

use Drupal\Core\Entity\Query\QueryInterface;
use Drupal\webform\WebformEntityListBuilder;

/**
Expand All @@ -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
Expand Down

0 comments on commit 05067a8

Please sign in to comment.