'NO_SUCH_CURRENCY_ERROR']; public $message = 'This value is not a valid currency.'; public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, $payload = null) { if (!\class_exists(Currencies::class)) { throw new LogicException('The Intl component is required to use the Currency constraint. Try running "composer require symfony/intl".'); } parent::__construct($options, $groups, $payload); $this->message = $message ?? $this->message; } }