File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919 "require" : {
2020 "php" : " >=7.2" ,
2121 "thecodingmachine/graphqlite" : " ^5.0" ,
22- "symfony/validator" : " ^4.2 | ^5" ,
22+ "symfony/validator" : " ^4.2 | ^5 | ^6 " ,
2323 "doctrine/annotations" : " ^1.6"
2424 },
2525 "require-dev" : {
2626 "phpunit/phpunit" : " ^8.4.1" ,
2727 "mouf/picotainer" : " ^1.1" ,
2828 "phpstan/phpstan" : " ^0.12.14" ,
2929 "php-coveralls/php-coveralls" : " ^2.1.0" ,
30- "symfony/translation" : " ^4" ,
30+ "symfony/translation" : " ^4 | ^5 | ^6 " ,
3131 "doctrine/coding-standard" : " ^9.0"
3232 },
3333 "scripts" : {
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ private function getSchemaFactory(): SchemaFactory
3535 },
3636 ValidatorInterface::class => function (ContainerInterface $ container ) {
3737 $ build = new ValidatorBuilder ();
38- $ build ->enableAnnotationMapping (new AnnotationReader ());
38+ $ build ->enableAnnotationMapping ();
39+ $ build ->setDoctrineAnnotationReader (new AnnotationReader ());
3940 $ build ->setTranslator ($ container ->get (TranslatorInterface::class));
4041 return $ build ->getValidator ();
4142 },
You can’t perform that action at this time.
0 commit comments