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
As title, and a code sniffer PR was created to the coder project.
Only found one case in Drupal core with that sniff, so enlarge the scope is unnecessary.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#9 | 3126784-9.0.x-9.patch | 2.82 KB | jungle |
#9 | 3126784-8.9.x-9.patch | 2.82 KB | jungle |
#5 | interdiff-2-5.txt | 1.68 KB | quietone |
#5 | 3126784-9.1.x-5.patch | 2.59 KB | quietone |
#2 | 3126784.2.patch | 571 bytes | jungle |
Comments
Comment #2
jungleComment #3
jungleComment #4
jungleComment #5
quietone CreditAttribution: quietone as a volunteer commentedThe use statement in DestinationCategoryTest needs to be changed from BlockedIP to BlockedIp. And then I did a grep for 'BlockedIP' and changed other references. It made sense to me to do it all at once but others may consider it out of scope. Therefore, this patch is only for 9.1.x.
Comment #6
longwaveWhile "Ip" might look wrong this is the correct way to camel case acronyms and initialisms. I think #5 is OK to fix all instances in one go.
Comment #7
alexpottCommitted aafcd8d and pushed to 9.1.x. Thanks!
Going too ask release managers about backporting this.
Need to fix \Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\DestinationCategoryTest::getContentClasses() to use the correct case. Fixed on commit.
We have to fix all these things together as this fixes odd bugs on case sensitive file systems...
Note this doesn't really break much because of the way we discover plugins.
Comment #9
junglePatches cherry-picked from aafcd8d in case they are needed. (probably, this is unnecessary)
Comment #12
alexpott@jungle yes that's unnecessary if the patch applies to all the branches you can leave it up to the committer. That said it can be helpful to queue test runs against the other branches.
Discussed with @catch and we agreed to backport to 9.0.x and 8.9.x.
Comment #14
xjmIn #3134472: [8.8 only] Fix failure of enabled phpcs rule: Drupal.Files.EndFileNewline in 8.8.x @jungle discussed backporting this fix to 8.8.x. If it had just been a test class, a backport would have been alright, but since this is an actual public API, case-insensitive filesystems would have had to change their use statements for this (and case-sensitive ones would presumably have already worked around the problem, and even if they didn't it's only a difference of a less than month between the release of 8.8.6 and that of 8.9.0 for the bugfix to be available for them).
So, leaving this against 8.9.x is correct.