Skip to content

Commit

Permalink
Merge pull request #65 from jerowork/jerowork/upgrade-symfony-to-6
Browse files Browse the repository at this point in the history
Upgrade Symfony vendor to ^6
  • Loading branch information
oojacoboo authored Dec 29, 2022
2 parents a2a9ae1 + fb5515e commit 1a7d828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"require" : {
"php" : ">=7.2",
"thecodingmachine/graphqlite" : "^5.0",
"symfony/validator": "^4.2 | ^5",
"symfony/validator": "^4.2 | ^5 | ^6" ,
"doctrine/annotations": "^1.6"
},
"require-dev": {
"phpunit/phpunit": "^8.4.1",
"mouf/picotainer": "^1.1",
"phpstan/phpstan": "^0.12.14",
"php-coveralls/php-coveralls": "^2.1.0",
"symfony/translation": "^4",
"symfony/translation": "^4 | ^5 | ^6",
"doctrine/coding-standard": "^9.0"
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ private function getSchemaFactory(): SchemaFactory
},
ValidatorInterface::class => function(ContainerInterface $container) {
$build = new ValidatorBuilder();
$build->enableAnnotationMapping(new AnnotationReader());
$build->enableAnnotationMapping();
$build->setDoctrineAnnotationReader(new AnnotationReader());
$build->setTranslator($container->get(TranslatorInterface::class));
return $build->getValidator();
},
Expand Down

0 comments on commit 1a7d828

Please sign in to comment.