mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
On AsyncFileExists, checks on null value for the customization of the message
This commit is contained in:
parent
19ffef156b
commit
2b3f8948f8
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user