File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/PageCache/Model/App/Request/Http
lib/internal/Magento/Framework/App/PageCache Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function __construct(
38
38
*/
39
39
public function getValue ()
40
40
{
41
- $ url = $ this ->request ->getUriString ();
41
+ $ url = ( string ) $ this ->request ->getUriString ();
42
42
list ($ baseUrl , $ query ) = $ this ->reconstructUrl ($ url );
43
43
$ data = [
44
44
$ this ->request ->isSecure (),
@@ -62,7 +62,7 @@ private function reconstructUrl(string $url): array
62
62
if (empty ($ url )) {
63
63
return [$ url , '' ];
64
64
}
65
- $ baseUrl = strtok (( string ) $ url , '? ' );
65
+ $ baseUrl = strtok ($ url , '? ' );
66
66
$ query = $ this ->request ->getUri ()->getQueryAsArray ();
67
67
if (!empty ($ query )) {
68
68
ksort ($ query );
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function __construct(
50
50
*/
51
51
public function getValue ()
52
52
{
53
- $ url = $ this ->request ->getUriString ();
53
+ $ url = ( string ) $ this ->request ->getUriString ();
54
54
list ($ baseUrl , $ query ) = $ this ->reconstructUrl ($ url );
55
55
$ data = [
56
56
$ this ->request ->isSecure (),
@@ -73,7 +73,7 @@ private function reconstructUrl(string $url): array
73
73
if (empty ($ url )) {
74
74
return [$ url , '' ];
75
75
}
76
- $ baseUrl = strtok (( string ) $ url , '? ' );
76
+ $ baseUrl = strtok ($ url , '? ' );
77
77
$ query = $ this ->request ->getUri ()->getQueryAsArray ();
78
78
if (!empty ($ query )) {
79
79
ksort ($ query );
You can’t perform that action at this time.
0 commit comments