From 908e5b3e5e09a815537a410d7142479eb21bd3b3 Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Tue, 19 Mar 2024 19:55:59 +0100 Subject: [PATCH] Prevent false positive --- App/Request/PathInfoProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Request/PathInfoProcessor.php b/App/Request/PathInfoProcessor.php index 4af1aca..bd672dd 100644 --- a/App/Request/PathInfoProcessor.php +++ b/App/Request/PathInfoProcessor.php @@ -29,7 +29,7 @@ public function __construct( public function process(RequestInterface $request, $pathInfo): string { $storeCode = $this->storePathInfoValidator->getValidStoreCode($request, $pathInfo); - if (!empty($storeCode)) { + if ($storeCode !== null) { try { $path = $this->pathResolver->resolve($this->storeRepository->getActiveStoreByCode($storeCode)); } catch (LocalizedException) {