Closed (fixed)
Project:
Ban
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2026 at 13:52 UTC
Updated:
26 Mar 2026 at 00:15 UTC
Jump to comment: Most recent
Fix phpstan and cspell, see GitLab CI
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
anybodyShould the custom phpstan.neon get removed?
Comment #5
grevil commentedLast PHPStan error suggests removing the ban migrate source plugin, since that module is currently deprecated and will be removed in Drupal 12. Unsure if we should really do that. I'd prefer not to.
Comment #6
anybody@grevil: That sounds like #3572710: Drupal\ban\Plugin\migrate\source\d7\BlockedIps extends deprecated class?
Then let's just merge that one before this?
Comment #7
anybodyAll green! Merged!
Comment #10
mstrelan commentedSorry, this has not fixed phpstan, it's just lowered the level from 8 to 0. Would be better to add the appropriate return types. I hadn't added them initially because it would mean a BC break, so I've added to the baseline instead.
Comment #11
grevil commented@mstrelan that is true, since removing it we use https://git.drupalcode.org/project/gitlab_templates/-/blob/main/assets/p... instead.
But this is usually the standard for most contrib modules, why should we use a dedicated phpstan.neon for this module specifically?
Comment #12
mstrelan commentedI don't see it as the standard, more as the lack of standard. In fact, Drupal core uses level 1, and ban was previously subject to that. By reverting to level 0 we're going even lower than core.
The documentation for PHPStan in Gitlab Templates (for contrib) is at https://project.pages.drupalcode.org/gitlab_templates/jobs/phpstan/ and suggests that the default configuration is a fallback for when you haven't provided your own:
Comment #13
grevil commentedComment #16
grevil commentedComment #18
mstrelan commentedComment #19
anybody@mstrelan I left a reply. Thanks!
Comment #20
grevil commentedLGTM, thanks!
Comment #22
grevil commentedComment #25
anybody@mstrelan could you please finally check that 1.1.x-dev is fine again now?
Comment #26
mstrelan commentedperfect, thanks!