Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | public function getConfigTreeBuilder() |
||
21 | { |
||
22 | $treeBuilder = new TreeBuilder('core23_doctrine'); |
||
23 | |||
24 | // Keep compatibility with symfony/config < 4.2 |
||
25 | if (!method_exists(TreeBuilder::class, 'getRootNode')) { |
||
26 | $rootNode = $treeBuilder->root('core23_doctrine'); |
||
|
|||
27 | } else { |
||
28 | $rootNode = $treeBuilder->getRootNode(); |
||
29 | } |
||
30 | |||
31 | \assert($rootNode instanceof ArrayNodeDefinition); |
||
32 | |||
33 | $this->addTableSection($rootNode); |
||
34 | |||
35 | return $treeBuilder; |
||
36 | } |
||
52 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.