Error while installation of module

Created on 4 June 2024, 20 days ago
Updated 11 June 2024, 13 days ago

when I try to install module, it throws following error:

Fatal error: Declaration of Drupal\date_recur_search_api\Plugin\ComputedField\DateOccurrence::attachAsBundleField(&$fields, Drupal\Core\Entity\EntityTypeInterface $entity_type, string $bundle): void must be compatible with Drupal\computed_field\Plugin\ComputedField\ComputedFieldBase::attachAsBundleField($fields, Drupal\Core\Entity\EntityTypeInterface $entity_type, string $bundle): bool in D:\laragon\www\june3\web\modules\contrib\date_recur_search_api\src\Plugin\ComputedField\DateOccurrence.php on line 41

I' m also attaching image of the error.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @praveen rani
  • Merge request !2Update DateOccurrence.php β†’ (Open) created by praveen rani
  • Issue was unassigned.
  • Status changed to Needs review 20 days ago
  • Hi @joachim for above issue I have created MR. Please review it.

    Thank You.

  • Status changed to Closed: works as designed 20 days ago
  • πŸ‡¬πŸ‡§United Kingdom joachim

    I think you're on a version of CF that's too old. The return was changed from bool to void.

    And it's a good idea to read the docs before making an MR! This return value meaning is totally fictional!

    > // Return true to indicate the fields were successfully attached.

  • Status changed to Active 13 days ago
  • I also encountered this issue. After looking into it I see that the alpha9 release which is the latest release still has a bool return type.

    The dev branch has the change to void.

    Until Computed Fields has a new release I'll try out using the dev branch.

  • πŸ‡¬πŸ‡§United Kingdom joachim

    Ah my mistake -- I thought I'd made a new release of Computed Fields.

    I was holding off because there's one more thing I want to fix and then I'm making a beta!

  • Status changed to Closed: works as designed 13 days ago
  • πŸ‡¬πŸ‡§United Kingdom joachim

    Made a new release of CF. Should all work now!

Production build 0.69.0 2024