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
Followup from #2796755: [PP-1] Deprecate Migration::set().
In comment #124 alexpott said "We need to remove \Drupal\migrate\Plugin\Migration::$dependencies it is unused and confusing".
Steps to reproduce
N/A
Proposed resolution
Remove unused variable $dependencies
Remaining tasks
Patch
Review
Commit
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#12 | 3223725-12.patch | 4.62 KB | Spokje |
| |||
#12 | interdiff.9-12.txt | 2.81 KB | Spokje |
Comments
Comment #2
imalabyaAdded a patch to remove the variable.
Comment #3
longwaveTestMigrationMock in MigrationPluginManagerTest extends this class and uses this property, we should change this to use migration_dependencies I think.
Comment #7
kkalashnikov CreditAttribution: kkalashnikov as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedRe-roll patch for Drupal version 10.1.x
Comment #8
longwaveThere was no need to reroll the patch, #2 still applies, so removing credit for #7. #3 still needs addressing, the CI failed now we have PHPStan to pick up on this type of thing.
Comment #9
SpokjeComment #10
SpokjeComment #11
quietone CreditAttribution: quietone at PreviousNext commentedIn the test file, is there a reason to limit the change to the test mock? I don't see why. So, I think we should also change it in testDependencyBuilding and dependencyProvider.
Comment #12
SpokjeIs this what we're after?
Comment #13
quietone CreditAttribution: quietone at PreviousNext commentedMake it clear that this is different from other issues that are removing an unused variable.
Comment #14
smustgrave CreditAttribution: smustgrave at Mobomo commentedAs the task seems to be just to remove the variable that appears to be complete (updated issue summary too).
Comment #16
catchCommitted 2fbac34 and pushed to 10.1.x. Thanks!