Skip to content

Commit f2903f0

Browse files
author
Dale Sikkema
committed
MAGETWO-49668: add explicit set of path component to generated uri #3339
- delete unused variable
1 parent 54a74ab commit f2903f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/PageCache/Model/Cache/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function getUris()
7171
$servers[] = UriFactory::factory($this->urlBuilder->getUrl('*', ['_nosid' => true]));
7272
}
7373

74-
foreach ($servers as $key => $value) {
74+
foreach (array_keys($servers) as $key) {
7575
$servers[$key]->setScheme('http')
7676
->setPath('/')
7777
->setQuery(null);

app/code/Magento/PageCache/Test/Unit/Model/Cache/ServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testGetUris(
8181
}
8282
}
8383

84-
foreach ($uris as $key => $value) {
84+
foreach (array_keys($uris) as $key) {
8585
$uris[$key]->setScheme('http')
8686
->setPath('/')
8787
->setQuery(null);

0 commit comments

Comments
 (0)