Problem/Motivation
The phpcs pipeline job is failing, see for example https://git.drupalcode.org/issue/content_lock-3441684/-/pipelines/635051
Proposed resolution
Fix phpcs pipeline job findings
Remaining tasks
- Write a merge request
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
Issue fork content_lock-3553633
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:
- 3553633-fix-phpcs-findings
changes, plain diff MR !101
Comments
Comment #4
klausiReady for review, I did not understand how to fix all deprecation warnings, but tests are green now.
Comment #5
aurelianzaha commentedthanks for the fix @klausi
Comment #6
liam morlandI don't think
block_content_add_body_field()should be removed until support for Drupal 10 is removed. Version 3.0.x should be for Drupal 10 and 11, whereblock_content_add_body_field()still exists. Version 3.1.x could be for Drupal 11 and 12 andBodyFieldCreationTraitcan be used instead. It is better to directly replace the function with the trait replacement instead of going through the intermediate step of a custom function.Comment #8
alexpottNice to come to the issue queue and fix this done. Thanks everyone!