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.
Patch attached replaces the usage of deprecated functions and methods with the appropriate replacements.
For more details on ideas and strategies, see https://www.drupal.org/node/3032484
Missing drupalci.yml
Comment | File | Size | Author |
---|---|---|---|
#21 | interdiff.txt | 379 bytes | andriansyah |
#21 | 3037323-21.patch | 3.96 KB | andriansyah |
| |||
#21 | 3037323-21-ci.patch | 4.61 KB | andriansyah |
#16 | interdiff.txt | 770 bytes | andypost |
#15 | interdiff.txt | 417 bytes | andypost |
Comments
Comment #2
Martijn de WitComment #3
andypostMakes sense to add https://www.drupal.org/node/3032484 also rerolled after #3046085: Update deprecated Unicode::* to mb_* for Drupal 9
Meantime getting following
Comment #4
andypostFix cs
Comment #5
JeroenTPatch no longer applied. Created reroll.
Comment #6
JeroenTDid some extra checks:
Comment #7
gregglesJust spent some time reviewing and this seems like a good idea.
I wonder about doing just this as a first step:
Comment #8
andypostProudly found elsewhere - d-org ci supports phpstan, see patch in https://www.drupal.org/project/examples/issues/3014492
Comment #9
andypostExcept of config object looks good
nor sure that caching of config is good idea
Comment #10
JeroenT@andypost,
I think I don't understand what you mean.
I'm not against changing, but I think this is a commonly used pattern. Even in core, e.g.
Drupal\system\PathBasedBreadcrumbBuilder
:Comment #11
saidatomComment #12
saidatomComment #13
andypostRe-roll and removal of
(string)
as they not needed (if you know why they can be required please comment)Comment #14
andypostFix one more CS
Comment #15
andypostAnd the last bit
Comment #16
andypostAnd composer changes too
Comment #17
gregglesThese changes look good to me.
To really avoid problems for users of 8.7.x, I propose we commit this when 8.7 is no longer supported (or nearly no longer supported).
Comment #18
John Cook CreditAttribution: John Cook at Creode commentedI've done another check for patch #16 with upgrade status:
As
"drupal/core": "^8.7.7 || ^9"
is specified in composer.json, I think it's OK to apply now.Setting to RTBC.
Comment #19
andypostthe only questionable change, as user module required probably we can remove it
Comment #20
JeroenTSince we added
core_version_requirement: ^8.7.7 || ^9
we can changedrupal:user (>=8.7.7)
todrupal:user
Setting back to needs work for that change.
Comment #21
andriansyah CreditAttribution: andriansyah as a volunteer commentedattached the patch file with no version in the drupal:user dependency.
Comment #22
JeroenTComment #24
JeroenTThe -ci.patch file is failing because of the following deprecation:
which is a deprecation in inline_entity_form that should be fixed before Drupal 10: #3121071: Replace theme_inline_entity_form_entity_table() with twig template.
Comment #25
JeroenTAs mentioned in #17 this should be committed once 8.7 is no longer supported. Since Drupal 8.7 is currently no longer supported we can probably commit this now.
Comment #26
andypost++ to get in and maybe few other issues and create new release
Comment #28
andypostI went ahead and commited #21 also filed follow-up #3148078: Add custom drupalci.yml
Gonna create new release