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/node/lib/Drupal/node/Tests/Views/FilterUidRevisionTest.php
Line 54: Unused local variable $node
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal_core-unused_local_variable-2080065-5.patch | 731 bytes | Pete B |
#3 | drupal_core-unused_local_variable-2080065-3.patch | 1.4 KB | Pete B |
Comments
Comment #1
littledynamo CreditAttribution: littledynamo commentedComment #2
littledynamo CreditAttribution: littledynamo commentedComment #3
Pete B CreditAttribution: Pete B commentedNone of the $node variables were being used.
Comment #5
Pete B CreditAttribution: Pete B commentedOk, so maybe they were used once or twice...
Comment #6
sandipmkhairnar CreditAttribution: sandipmkhairnar commentedThanks @Pete B for patch.
I have review and tested the patch its working fine for me.
Comment #7
oriol_e9gComment #8
alexpottCommitted cddf217 and pushed to 8.x. Thanks!