Symfony\Component\Form\FormError::__construct
Constructor
Any array key in $messageParameters will be used as a placeholder in $messageTemplate.
Signature
public function __construct(string
$message,
[string|null
$messageTemplate = null,
[array
$messageParameters = null,
[integer|null
$messagePluralization = null]]] )
Parameters
$message
— string- The translated error message
$messageTemplate
— object- The template for the error message
$messageParameters
— array- The parameters that should be
substituted in the message template. $messagePluralization
— object- The value for error message pluralization