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/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php
Line 56: Unused local variable $language
Comment | File | Size | Author |
---|---|---|---|
#1 | 2080655-remove-unused-variables.patch | 2.69 KB | chertzog |
Comments
Comment #1
chertzogClosed the following as duplicates:
#2080073: Remove Unused local variable $group from /core/modules/system/system.api.php
#2080099: Remove Unused local variable $entity from /core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
#2080097: Remove Unused local variable $name from /core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Attached patch fixes above issues as well.
Comment #2
sandipmkhairnar CreditAttribution: sandipmkhairnar commentedThanks @chertzog for patch.
I have tested patch its working fine for me.
Comment #3
klausiLooks good.
Comment #4
alexpottCommitted fb007a5 and pushed to 8.x. Thanks!