Skip to content

Commit 4a7bcca

Browse files
committed
fix test
1 parent c9dd5e2 commit 4a7bcca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/PageCache/Model/App/Request/Http/IdentifierForSave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getValue()
4343
$replace = array_fill(0, count($pattern), '');
4444
$data = [
4545
$this->request->isSecure(),
46-
preg_replace($pattern, $replace, $this->request->getUriString()),
46+
preg_replace($pattern, $replace, (string)$this->request->getUriString()),
4747
$this->context->getVaryString()
4848
];
4949

lib/internal/Magento/Framework/App/PageCache/Identifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function getValue()
7171
$replace = array_fill(0, count(self::PATTERN_MARKETING_PARAMETERS), '');
7272
$data = [
7373
$this->request->isSecure(),
74-
preg_replace($pattern, $replace, $this->request->getUriString()),
74+
preg_replace($pattern, $replace, (string)$this->request->getUriString()),
7575
$this->request->get(\Magento\Framework\App\Response\Http::COOKIE_VARY_STRING)
7676
?: $this->context->getVaryString()
7777
];

0 commit comments

Comments
 (0)