Problem/Motivation
------ -----------------------------------------------------------------
Line src/Plugin/migrate/source/d7/BlockedIps.php
------ -----------------------------------------------------------------
20 Class Drupal\ban\Plugin\migrate\source\d7\BlockedIps extends
deprecated class
Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase:
in drupal:11.3.0 and is removed from drupal:12.0.0. There is no
replacement.
🪪 class.extendsDeprecatedClass
------ -----------------------------------------------------------------
[ERROR] Found 1 error Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ban-3572710
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
garvitasakhrani commentedI am working on it.
Comment #3
garvitasakhrani commentedComment #4
mstrelan commentedI think we just want to add a
phpstan-ignore-next-linecomment, with a todo to remove it when we only support Drupal 12 and up.Comment #6
garvitasakhrani commentedThanks for the suggestion. I’ve addressed this by adding a targeted PHPStan suppression for the deprecated class extension, along with a clear @todo explaining that it should be removed once the module only supports Drupal 12+. This keeps PHPStan passing without broadly ignoring errors and documents why the suppression is needed.
Please review and let me know if this approach looks good or if you’d prefer a different handling.
Comment #9
anybody