Skip to content

Commit 908e5b3

Browse files
authored
Prevent false positive
1 parent 6063c2a commit 908e5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App/Request/PathInfoProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(
2929
public function process(RequestInterface $request, $pathInfo): string
3030
{
3131
$storeCode = $this->storePathInfoValidator->getValidStoreCode($request, $pathInfo);
32-
if (!empty($storeCode)) {
32+
if ($storeCode !== null) {
3333
try {
3434
$path = $this->pathResolver->resolve($this->storeRepository->getActiveStoreByCode($storeCode));
3535
} catch (LocalizedException) {

0 commit comments

Comments
 (0)