Skip to content

Commit 4ae7915

Browse files
committed
ACP2E-1512: Env variable config not working for store views with capital letters in the code
fixed deprecated function call
1 parent 8121469 commit 4ae7915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/Config/ScopeCodeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function resolve($scopeType, $scopeCode)
5959
$scopeCode = $resolverScopeCode;
6060
}
6161

62-
$this->resolvedScopeCodes[$scopeType][$scopeCode] = $resolverScopeCode ?: strtolower($resolverScopeCode);
62+
$this->resolvedScopeCodes[$scopeType][$scopeCode] = is_null($resolverScopeCode) ? null : strtolower($resolverScopeCode);
6363

6464
return $this->resolvedScopeCodes[$scopeType][$scopeCode];
6565
}

0 commit comments

Comments
 (0)