youshido-php / GraphQLBundle

Pure PHP implementation of GraphQL Server – Symfony Bundle
MIT License
284 stars 44 forks source link

TreeBuilded constructor with no parameters broke up composer #82

Open logosur opened 3 years ago

logosur commented 3 years ago

Hello,

In Symfony 5, let's do this:

composer require youshido/graphql-bundle composer remove youshido/graphql-bundle composer require youshido/graphql-bundle

And you get this error: Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! ArgumentCountError {#4094 !! #message: "Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in C:...\vendor\youshido\graphql-bundle\DependencyInjection\Configuration.php on line 21 and at least 1 expected" !! #code: 0 !! #file: "C:...\vendor\symfony\config\Definition\Builder\TreeBuilder.php" !! #line: 26 !! trace: {

Code: class Configuration implements ConfigurationInterface { /**

logosur commented 3 years ago

It seems that it will be fixed with one of the pull requests, updating to have compability with symfony 5. Nobody taking this pull request?