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
In core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php, $iterator
variables are never used.
Comment | File | Size | Author |
---|---|---|---|
#2 | unused_variable.png | 273.16 KB | shetpooja04 |
#2 | 3170972-2.patch | 670 bytes | shetpooja04 |
Comments
Comment #2
shetpooja04 CreditAttribution: shetpooja04 at QED42 commentedCommit ID: 643dc7a4
Link: https://git.drupalcode.org/project/drupal/-/commit/643dc7a452860c1be3f9c06af15b75980f2ef680
For Issue: https://www.drupal.org/project/drupal/issues/2452217 the variables were added
File: core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
$iterator variable were removed
Comment #3
quietone CreditAttribution: quietone as a volunteer commented@shetpooja04, thanks for that patch. Having the link to the issue where the use of the variable was removed was really helpful. That made this easy to review.
I looked at the issued referred and confirmed that the one use of the local variable was removed. I installed that patch and checked that $iterator was not used.
Yes, this is good to go.
Comment #5
catchCommitted a5cb5e4 and pushed to 9.1.x. Thanks!