Skip to content

Commit 1a7d828

Browse files
authored
Merge pull request #65 from jerowork/jerowork/upgrade-symfony-to-6
Upgrade Symfony vendor to ^6
2 parents a2a9ae1 + fb5515e commit 1a7d828

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
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": {

tests/IntegrationTest.php

+2-1
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)