Skip to content

TreeBuilded constructor with no parameters broke up composer #82

Description

@logosur

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
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('graphql');

    $rootNode
        ->children()

......

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions