File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -333,8 +333,8 @@ protected function getHmacFromRequest(Request $request): array
333
333
DataSource::HEADER ()->toNative () => $ request ->header ('X-Shop-Signature ' ),
334
334
// Headers: Referer
335
335
DataSource::REFERER ()->toNative () => function () use ($ request ): ?string {
336
- $ url = parse_url ($ request ->header ('referer ' ), PHP_URL_QUERY );
337
- parse_str ($ url , $ refererQueryParams );
336
+ $ url = parse_url ($ request ->header ('referer ' , '' ), PHP_URL_QUERY );
337
+ parse_str ($ url ?? '' , $ refererQueryParams );
338
338
if (! $ refererQueryParams || ! isset ($ refererQueryParams ['hmac ' ])) {
339
339
return null ;
340
340
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static function fromRequest(Request $request): ShopDomainValue
53
53
54
54
// Headers: Referer
55
55
DataSource::REFERER ()->toNative () => function () use ($ request ): ?string {
56
- $ url = parse_url ($ request ->header ('referer ' ), PHP_URL_QUERY );
56
+ $ url = parse_url ($ request ->header ('referer ' , '' ), PHP_URL_QUERY );
57
57
if (! $ url ) {
58
58
return null ;
59
59
}
Original file line number Diff line number Diff line change @@ -549,8 +549,8 @@ private function getShopDomain(Session $session = null): NullableShopDomain
549
549
},
550
550
// Headers: Referer
551
551
DataSource::REFERER ()->toNative () => function (): ?string {
552
- $ url = parse_url (Request::server ('HTTP_REFERER ' ), PHP_URL_QUERY );
553
- parse_str ($ url , $ refererQueryParams );
552
+ $ url = parse_url (Request::server ('HTTP_REFERER ' , '' ), PHP_URL_QUERY );
553
+ parse_str ($ url ?? '' , $ refererQueryParams );
554
554
555
555
return Arr::get ($ refererQueryParams , 'shop ' );
556
556
},
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ protected function getEnvironmentSetUp($app): void
96
96
'prefix ' => '' ,
97
97
]);
98
98
$ app ['config ' ]->set ('auth.providers.users.model ' , UserStub::class);
99
+ $ app ['config ' ]->set ('logging.deprecations ' , 'errorlog ' );
99
100
}
100
101
101
102
protected function setupDatabase ($ app ): void
You can’t perform that action at this time.
0 commit comments