Skip to content

Commit 0b629d3

Browse files
authored
Fix undefined variable
1 parent 81d1d62 commit 0b629d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugin/App/Request/StorePathInfoValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public function __construct(
3232
public function beforeGetValidStoreCode(Subject $subject, Http $request, string $pathInfo = ''): array
3333
{
3434
if (++$this->stack === 1 && $this->config->isBaseUrlResolverEnabled()) {
35-
$storeCode = $this->resolveStoreCode($pathInfo);
35+
$storeCode = $this->resolveStoreCode($request, $pathInfo);
3636
$pathInfo = $storeCode === '' ? $pathInfo : $storeCode;
3737
}
3838
$this->stack--;
3939

4040
return [$request, $pathInfo];
4141
}
4242

43-
private function resolveStoreCode(string $pathInfo): string
43+
private function resolveStoreCode(Http $request, string $pathInfo): string
4444
{
4545
$uri = strtok($request->getUriString(), '?') . '/';
4646
if ($uri !== false) {

0 commit comments

Comments
 (0)