mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
On AsyncFileExists, checks on null value for the customization of the message
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user