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 commentedComment #3
s_bhandari commentedAdded a patch for the same.
Comment #4
shaktiktagged to Novice.
Comment #5
s_bhandari 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_namein looping.Comment #8
s_bhandari commentedWorking on it.
Comment #9
s_bhandari commentedAdded a patch for the same.
Comment #10
s_bhandari commentedComment #11
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!