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.
Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/views/lib/Drupal/views/Tests/Handler/RelationshipTest.php
Line 128: Unused local variable $key
Comment | File | Size | Author |
---|---|---|---|
#1 | core-remove-unused-vars-relationshiptest.php-2072619-1.patch | 709 bytes | legolasbo |
Comments
Comment #1
legolasboRemoved unused variable
Comment #2
erik.erskine CreditAttribution: erik.erskine commentedLooks fine to me. Applies cleanly.
The $key variable within the foreach block is not necessary.
Comment #3
dawehnerSetting to RTBC according to #2
Comment #4
alexpottCommitted a34cb25 and pushed to 8.x. Thanks!
Committed as part of a merged commit for #2002650: [meta, no patch] improve maintainability by removing unused local variables