Skip to content

Commit e895505

Browse files
authored
Remove block to use Escaper to fix static test failure
1 parent f9becf8 commit e895505

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Vault/view/frontend/templates/token_list.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
*/
66

77
/** @var \Magento\Vault\Block\Customer\AccountTokens $block */
8+
/** @var $escaper \Magento\Framework\Escaper */
89
$tokens = $block->getPaymentTokens();
910
?>
1011
<?php if (count($tokens) !== 0): ?>
1112
<div class="table-wrapper my-credit-cards">
1213
<table class="data table table-credit-cards" id="token-list-table">
1314
<thead>
1415
<tr>
15-
<th scope="col" class="col"><?= $block->escapeHtml(__('Account')) ?></th>
16+
<th scope="col" class="col"><?= $escaper->escapeHtml(__('Account')) ?></th>
1617
<th scope="col" class="col actions">&nbsp;</th>
1718
</tr>
1819
</thead>

0 commit comments

Comments
 (0)