Skip to content

Commit abe6afa

Browse files
committed
Static tests fix
1 parent 20d9e77 commit abe6afa

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Element/UiComponent

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Element/UiComponent/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ protected function setAcceptType()
350350
$this->acceptType = 'html';
351351

352352
$AcceptTypes = $this->getSortedAcceptHeader();
353-
foreach ($AcceptTypes as $key => $value) {
353+
foreach (array_keys($AcceptTypes) as $key) {
354354
if (strpos($key, 'json') !== false) {
355355
$this->acceptType = 'json';
356356
} elseif (strpos($key, 'html') !== false) {

0 commit comments

Comments
 (0)