Skip to content

Commit 186ffc8

Browse files
committed
bug #370 [make:validator] Prevent an error in PHPStorm (dunglas, weaverryan)
This PR was merged into the 1.0-dev branch. Discussion ---------- [make:validator] Prevent an error in PHPStorm The currently generated DocBlock prevent auto-completion to work properly, and triggers a warning. This patch fixes it. Commits ------- 1d3bb7c adding slash so the class name is absolute 13f555b move to template 5fc99a5 [make:validator] Prevent an error in PHPStorm
2 parents 534caa0 + 1d3bb7c commit 186ffc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/validator/Validator.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class <?= $class_name ?> extends ConstraintValidator
99
{
1010
public function validate($value, Constraint $constraint)
1111
{
12-
/* @var $constraint <?= $constraint_class_name ?> */
12+
/* @var $constraint \<?= $constraint_class_name ?> */
1313

1414
$this->context->buildViolation($constraint->message)
1515
->setParameter('{{ value }}', $value)

0 commit comments

Comments
 (0)