- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module โ , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot โ to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
- Status changed to Needs work
5 months ago 5:49pm 26 March 2025 - ๐ท๐ดRomania claudiu.cristea Arad ๐ท๐ด
core_version_requirement needs also to be adapted
- First commit to issue fork.
- ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
Added some remarks/questions to MR
- ๐ฎ๐ณIndia vinodhini.e chennai
Hi, I have installed this module on Drupal 11.2.2.
It was not compatible with Drupal 11 โ also facing coding standards (PHPCS) issues.
After merging the 4.x branch, it became compatible.
The PHPCS issues have also been fixed. Thanks. - ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
alorenc โ changed the visibility of the branch 3433991-automated-drupal-11 to hidden.
- ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
I have performed some tests, and it generates a fatal error on both versions of private_messages (v3 and v4).
private_message v4
Fatal error: Declaration of Drupal\private_message_flood\Plugin\PrivateMessageConfigForm\PrivateMessageFloodPrivateMessageConfigForm::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) must be compatible with Drupal\private_message\Plugin\PrivateMessageConfigForm\PrivateMessageConfigFormBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition):private_message v3
Fatal error: Declaration of Drupal\private_message_flood\Plugin\PrivateMessageConfigForm\PrivateMessageFloodPrivateMessageConfigForm::validateForm(array &$form, Drupal\Core\Form\FormStateInterface $formState) must be compatible with Drupal\private_message\Plugin\PrivateMessageConfigForm\PrivateMessageConfigFormBase::validateForm(array &$form, Drupal\Core\Form\FormStateInterface $formState): void in /var/www/html/web/modules/repos/private_message_flood/src/Plugin/PrivateMessageConfigForm/PrivateMessageFloodPrivateMessageConfigForm.php on line 200In both cases we have
Error: Call to undefined function Drupal\private_message_flood\Plugin\PrivateMessageConfigForm\user_role_names() in Drupal\private_message_flood\Plugin\PrivateMessageConfigForm\PrivateMessageFloodPrivateMessageConfigForm->buildForm() (line 81 of modules/repos/private_message_flood/src/Plugin/PrivateMessageConfigForm/PrivateMessageFloodPrivateMessageConfigForm.php).
which makes sense as user_role_names is no longer aviable in D11First, we need to resolve/merge https://www.drupal.org/project/private_message_flood/issues/3501011 ๐ Private message 4 compatibility fixes Active and issues should disappear.
- ๐ต๐ฑPoland alorenc Wolsztyn, ๐ต๐ฑ
Moved to โNeeds Workโ because the current state generates a fatal error.
- ๐ต๐นPortugal dxvargas
The issue https://www.drupal.org/project/private_message_flood/issues/3501011 ๐ Private message 4 compatibility fixes Active is now merged.
- ๐ต๐นPortugal dxvargas
The MR is green now, after merging 2.x into the branch from here.
Review please!