mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
✅ Make unit tests working
This commit is contained in:
@@ -36,6 +36,7 @@ class ValidatorExtension extends AbstractExtension
|
||||
{
|
||||
$this->legacyErrorMessages = $legacyErrorMessages;
|
||||
|
||||
/** @var ClassMetadata $metadata */
|
||||
$metadata = $validator->getMetadataFor(\Symfony\Component\Form\Form::class);
|
||||
|
||||
// Register the form constraints in the validator programmatically.
|
||||
@@ -43,7 +44,6 @@ class ValidatorExtension extends AbstractExtension
|
||||
// the DIC, where the XML file is loaded automatically. Thus the following
|
||||
// code must be kept synchronized with validation.xml
|
||||
|
||||
/* @var $metadata ClassMetadata */
|
||||
$metadata->addConstraint(new Form());
|
||||
$metadata->addConstraint(new Traverse(false));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user