Skip to content

Commit

Permalink
fix(validation): fix validation exception resource
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Mar 5, 2024
1 parent 54638d3 commit b1dad84
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -45,9 +45,10 @@
use ApiPlatform\Symfony\EventListener\AddTagsListener;
use ApiPlatform\Symfony\EventListener\DenyAccessListener;
use ApiPlatform\Symfony\GraphQl\Resolver\Factory\DataCollectorResolverFactory;
use ApiPlatform\Symfony\Validator\Exception\ValidationException;
use ApiPlatform\Symfony\Validator\Exception\ValidationException as SymfonyValidationException;
use ApiPlatform\Symfony\Validator\Metadata\Property\Restriction\PropertySchemaRestrictionMetadataInterface;
use ApiPlatform\Symfony\Validator\ValidationGroupsGeneratorInterface;
use ApiPlatform\Validator\Exception\ValidationException;
use Doctrine\Persistence\ManagerRegistry;
use phpDocumentor\Reflection\DocBlockFactoryInterface;
use PHPStan\PhpDocParser\Parser\PhpDocParser;
Expand Down Expand Up @@ -373,6 +374,7 @@ private function getClassNameResources(): array
{
return [
Error::class,
SymfonyValidationException::class,
ValidationException::class,
];
}
Expand Down

0 comments on commit b1dad84

Please sign in to comment.