diff --git a/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExists.php b/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExists.php index c0b5ec79c..b76ddae68 100644 --- a/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExists.php +++ b/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExists.php @@ -21,7 +21,10 @@ final class AsyncFileExists extends Constraint public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, $payload = null) { parent::__construct($options ?? [], $groups, $payload); - $this->message = $message; + + if (null !== $message) { + $this->message = $message; + } } public function validatedBy()