( ! ) Warning: Undefined variable $namespace in /work/home/rbenmimo/www/TP3-rbenmimo/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 3 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0009 | 361600 | {main}( ) | .../Validator.tpl.php:0 |
;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class
( ! ) Warning: Undefined variable $class_name in /work/home/rbenmimo/www/TP3-rbenmimo/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 8 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0009 | 361600 | {main}( ) | .../Validator.tpl.php:0 |
extends ConstraintValidator
{
public function validate(mixed $value, Constraint $constraint): void
{
/** @var
( ! ) Warning: Undefined variable $constraint_class_name in /work/home/rbenmimo/www/TP3-rbenmimo/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 12 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0009 | 361600 | {main}( ) | .../Validator.tpl.php:0 |
$constraint */
if (null === $value || '' === $value) {
return;
}
// TODO: implement the validation here
$this->context->buildViolation($constraint->message)
->setParameter('{{ value }}', $value)
->addViolation();
}
}