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/file/lib/Drupal/file/Plugin/field/formatter/FileFormatterBase.php
Line 24: Unused local variable $delta
Line 36: Unused local variable $delta
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-core-remove-unused-local-variable-2081203.patch | 1.29 KB | mrsinguyen |
Comments
Comment #1
mrsinguyen CreditAttribution: mrsinguyen commentedComment #2
royal121 CreditAttribution: royal121 commentedPatch failed to apply.
Comment #3
TR CreditAttribution: TR commented1: drupal-core-remove-unused-local-variable-2081203.patch queued for re-testing.
Comment #5
areke CreditAttribution: areke commentedThe function prepareView() now only takes one argument, which is $entities_items. It looks like when this change was made, the unused variables were removed so this is no longer an issue.