File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed
src/Configuration/Connection Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change 1010
1111final class Options implements ConfigurationInterface
1212{
13- public function getConfigTreeBuilder ()
13+ public function getConfigTreeBuilder (): TreeBuilder
1414 {
1515 $ builder = new TreeBuilder ('options ' );
1616
@@ -34,34 +34,4 @@ public function getConfigTreeBuilder()
3434
3535 return $ builder ;
3636 }
37-
38- private function getConditionalTreeBuilder (): TreeBuilder
39- {
40- $ builder = new TreeBuilder ('conditional ' );
41-
42- /** @phpstan-ignore-next-line */
43- $ builder ->getRootNode ()
44- ->cannotBeEmpty ()
45- ->requiresAtLeastOneElement ()
46- ->validate ()
47- ->ifTrue (fn ($ data ) => count ($ data ) <= 0 )
48- ->thenUnset ()
49- ->end ()
50- ->arrayPrototype ()
51- ->children ()
52- ->variableNode ('condition ' )
53- ->validate ()
54- ->ifTrue (isExpression ())
55- ->then (asExpression ())
56- ->end ()
57- ->end ()
58- ->append ((new Query ())->getConfigTreeBuilder ()->getRootNode ())
59- ->append ((new Parameters ())->getConfigTreeBuilder ()->getRootNode ())
60- ->append ((new FastMap \Configuration ('merge ' ))->getConfigTreeBuilder ()->getRootNode ())
61- ->end ()
62- ->end ()
63- ->end ();
64-
65- return $ builder ;
66- }
6737}
You can’t perform that action at this time.
0 commit comments