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.
There are some unused variables present in the Views UI module i.e. the variables are initialized but never used and we should fix it. Below is the list for the same:
core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php
196 | WARNING | Unused variable $new_block_title.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3157933-9.patch | 834 bytes | S_Bhandari |
Comments
Comment #2
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedComment #3
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedAdded a patch for the same.
Comment #4
shaktiktagged to Novice.
Comment #5
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedComment #6
joshua1234511Reviewed the Patch #3
https://www.drupal.org/files/issues/2020-07-09/3157933-3.patch
Php 7.4 and Drupal core 9.1 3157933-3.patch
Works for me, No issue on the working.
Comment #7
narendra.rajwar27There is no need to remove the key
$row_name
in looping.Comment #8
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedWorking on it.
Comment #9
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedAdded a patch for the same.
Comment #10
S_Bhandari CreditAttribution: S_Bhandari at Srijan | A Material+ Company for Drupal India Association commentedComment #11
joachim CreditAttribution: joachim commentedLGTM.
Comment #12
alexpottThis has been an unused variable since all the way back to views 7.x-3.x. It was brought into core unused. It looks like a c&p from other test methods in the same class.
This fix is fine I think.
Comment #13
alexpottCommitted and pushed 4e50d880e9 to 9.1.x and 537d8fae34 to 9.0.x and c98772f42a to 8.9.x. Thanks!