Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
3 of 5 jobs in the "Validate" step in our GitLab CI pipeline are failing:
eslint
phpcs
phpstan
Steps to reproduce
https://git.drupalcode.org/project/address/-/pipelines/74589
Proposed resolution
Fix them.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork address-3413859
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:
- 3413859-fix-code-validate-jobs changes, plain diff MR !43
Comments
Comment #3
dwwWhoot, https://git.drupalcode.org/project/address/-/pipelines/75265 is finally all green. 😅
I punted on a couple of the errors since they were a bit more complicated to fix than I care to spend the time on right now. Should probably open a follow-up for them. For now, put them in
phpstan.neon
:I'd like to backport this to 8.x-1.x, and I believe the changes are all safe (enough).
Curious to see what you think.
Thanks!
-Derek
Comment #4
dwwOpened #3413883: Cleanup access to undefined properties in FieldType classes and pushed a @todo comment to phpstan.neon pointing there.
Comment #5
Nikolay ShapovalovThanks for MR, I provide feedback. Please check.
Comment #6
dwwThanks for the review! Addressed/resolved the threads. Yeah, it's much safer to deal with #3414148: Use DI not \Drupal in src/Plugin/views/filter/AdministrativeArea.php separately to not introduce disruptions.
@bojanz: Any final concerns before I merge?
Comment #7
bojanz CreditAttribution: bojanz commentedLooks good at a glance!
Comment #10
dwwGreat, thanks! Merged to 2.0.x and cherry picked to 8.x-1.x.