- 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 → these changes make this module compatible with Drupal 11! 🎉
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.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
3 months ago 3:06pm 3 October 2024 - 🇬🇧United Kingdom nicrodgers Monmouthshire, UK
We can't use the DeprecationHelper without dropping support for Drupal < 10.1.3 because that's when the helper utility was introduced. Currently this module says it's compatible with 8, 9 and 10.
So instead of using DeprecationHelper we can do it the old-school way
if (version_compare(\Drupal::VERSION, '10.1', '>=')) { $logger = \Drupal::logger('pwned_passwords') Error::logException($logger, $exception); } else { // @phpstan-ignore-next-line watchdog_exception('lockr', $exception); };
or we can drop support for Drupal <= 10.1.3
- 🇫🇷France tart0 Nantes, France
@nicrodgers Given that Drupal 10.1 has reached end-of-life and is no longer maintained, dropping support for it seems reasonable. Removing compatibility with deprecated versions can streamline the codebase and reduce technical debt, allowing for a more efficient implementation of current best practices, including using utilities like
DeprecationHelper
. Moreover, aligning with supported versions ensures we stay updated with security patches and new features.