coreshop / CoreShop

CoreShop - Pimcore enhanced eCommerce
http://www.coreshop.org
Other
274 stars 154 forks source link

Invalid Range Constraint in CartPriceRuleVoucherGenerator.yml #2623

Closed solverat closed 2 months ago

solverat commented 2 months ago
Q A
Bug report? yes/no
Feature request? yes/no
BC Break report? yes/no
RFC? yes/no

Affected CS Version: 4.x

Within symfony 6.4.7, the VoucherGenerator contains an invalid range constraint config:

The "Symfony\Component\Validator\Constraints\Range" constraint can not use "minMessage" and "maxMessage" when the "min" and "max" options are both set. Use "notInRangeMessage" instead.

Source:

https://github.com/coreshop/CoreShop/blob/0333b345951835fc142fa38073e555d28a41b0a6/src/CoreShop/Bundle/OrderBundle/Resources/config/validation/CartPriceRuleVoucherGenerator.yml#L8-L11