Skip to content

Commit

Permalink
SymfonyValidator: fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 1, 2023
1 parent 3c4dccc commit b243b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Mapping/Validator/SymfonyValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterfac
*/
public function validate(object $entity): void
{
// @phpstan-ignore-next-line
$validatorBuilder = Validation::createValidatorBuilder()
->enableAnnotationMapping()
->enableAttributeMapping()
->setDoctrineAnnotationReader($this->reader);

if ($this->constraintValidatorFactory !== null) {
Expand Down

0 comments on commit b243b42

Please sign in to comment.