Closed (duplicate)
Project:
Drupal core
Version:
9.1.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2020 at 12:34 UTC
Updated:
16 Jul 2020 at 22:25 UTC
Jump to comment: Most recent
In core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php file in function providerPlaceholders() $base_element_a5 is initialized but never used.
Remove unused $base_element_a5 variable.
public function providerPlaceholders() {
.........
// Note the absence of '#create_placeholder', presence of max-age=0 created
// by the #lazy_builder callback.
// @todo in https://www.drupal.org/node/2559847
- $base_element_a5 = [];
// Note the absence of '#create_placeholder', presence of high cardinality
// cache context created by the #lazy_builder callback.
// @see \Drupal\Tests\Core\Render\PlaceholdersTest::callbackPerUser()
| Comment | File | Size | Author |
|---|---|---|---|
| unsused-variable-removed.patch | 801 bytes | hardik_patel_12 |
Comments
Comment #3
hardik_patel_12 commentedComment #4
avpadernoThis is already handled in #2559847: Auto-placeholdering for #lazy_builder with bubbling of max-age where
$base_element_a5is not an empty array anymore.