Fix the declaration of the getQuery function for query building classes in Drupal 10

Created on 15 May 2023, about 1 year ago
Updated 25 May 2023, about 1 year ago

Problem/Motivation

When i do drush updb :

In ProcessBase.php line 171:

  Unable to decode output into JSON: Syntax error

  Fatal error: Declaration of Drupal\webform\WebformSubmissionListBuilder::getQuery($keys = '', $state = '', $source_entity = '') must be compatible with Drupal\Core\Entity\EntityListBuilder::getQuery():
  Drupal\Core\Entity\Query\QueryInterface in /data-ceph/www/kitbased28/public/modules/contrib/webform/src/WebformSubmissionListBuilder.php on line 1376

Steps to reproduce

Up webform to 6.2-dev with composer and launch updb

Proposed resolution

    • Use the : QueryInterface as a return type for the getQuery function in the WebformImageSelectImagesListBuilder, WebformOptionsCustomListBuilder, WebformEntityListBuilder, WebformOptionsListBuilder, WebformSubmissionExporter ,WebformSubmissionListBuilder
    • Use the : SelectInterface as a return type for the getQuery function in the WebformSubmissionLogManager class

    Remaining tasks

    User interface changes

    API changes

    Data model changes

    Thanks

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡«πŸ‡·France devil2005

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024