Skip to content

Commit

Permalink
Update CleanFileValidator.php
Browse files Browse the repository at this point in the history
Fix CleanFileValidator, call $this->context->buildViolation instead of $this->buildViolation
  • Loading branch information
bubnov-mikhail authored Jan 23, 2017
1 parent 447d651 commit 97ab9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Validator/Constraints/CleanFileValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function validate($value, Constraint $constraint)
unlink($path);
}

$this->buildViolation($constraint->virusDetectedMessage)->addViolation();
$this->context->buildViolation($constraint->virusDetectedMessage)->addViolation();

return;
}
Expand Down

0 comments on commit 97ab9e1

Please sign in to comment.