Commit d94441ec authored by Matthieu Rolland's avatar Matthieu Rolland Committed by matthieu-rolland
Browse files

Update src/Adapter/Configuration.php



Co-authored-by: default avatarJonathan Lelievre <jo.lelievre@gmail.com>
parent 84c41d5d
......@@ -376,7 +376,7 @@ class Configuration extends ParameterBag implements ShopConfigurationInterface
return $shopConstraint->getShopGroupId()->getValue();
} elseif (null !== $shopConstraint->getShopId()) {
$shopGroupId = Shop::getGroupFromShop((int) $shopConstraint->getShopId()->getValue(), true);
// $shopGroupId can must not be false, it would mean that the shop group was not found for the given shop
// $shopGroupId can not be false, it would mean that the shop group was not found for the given shop
if ($shopGroupId === false) {
throw new ShopException(
sprintf(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment