diff --git a/src/ServiceContainer/PantherConfiguration.php b/src/ServiceContainer/PantherConfiguration.php index 75c89bc..aa1225c 100644 --- a/src/ServiceContainer/PantherConfiguration.php +++ b/src/ServiceContainer/PantherConfiguration.php @@ -33,7 +33,13 @@ public function addOptionsNode(): ArrayNodeDefinition { $treeBuilder = new TreeBuilder('options'); - $node = $treeBuilder->getRootNode() + if (\method_exists($treeBuilder, 'getRootNode')) { + $root = $treeBuilder->getRootNode(); + } else { + $root = $treeBuilder->root('options'); + } + + $node = $root ->info( "These are the options passed as first argument to PantherTestCaseTrait::createPantherClient client constructor." )