Module is incompaible with Private Message > 3.0.4

Created on 26 January 2025, 30 days ago

When updating to version 3.2.7, my whole Opigno site died with the following error message:

PHP Fatal error:Declaration of Drupal\opigno_messaging\Services\OpignoPrivateMessageService::getFirstThreadForUser(Drupal\user\UserInterface $user) must be compatible with Drupal\private_message\Service\PrivateMessageService::getFirstThreadForUser(Drupal\user\UserInterface $user): Drupal\private_message\Entity\PrivateMessageThreadInterface|false in /[...]/opigno_messaging/src/Services/OpignoPrivateMessageService.php on line 33

Pinning the version of drupal/private_message to 3.0.4 in my composer file appears to solve the issue.

🐛 Bug report
Status

Active

Version

3.2

Component

Code

Created by

🇳🇴Norway reswild

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

Comments & Activities

Production build 0.71.5 2024