| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function getConfigTreeBuilder() |
||
| 21 | { |
||
| 22 | $treeBuilder = new TreeBuilder('core23_dompdf'); |
||
| 23 | |||
| 24 | // Keep compatibility with symfony/config < 4.2 |
||
| 25 | if (!method_exists(TreeBuilder::class, 'getRootNode')) { |
||
| 26 | $rootNode = $treeBuilder->root('core23_dompdf'); |
||
|
|
|||
| 27 | } else { |
||
| 28 | $rootNode = $treeBuilder->getRootNode(); |
||
| 29 | } |
||
| 30 | \assert($rootNode instanceof ArrayNodeDefinition); |
||
| 31 | |||
| 32 | $rootNode |
||
| 33 | ->children() |
||
| 34 | ->arrayNode('defaults') |
||
| 35 | ->useAttributeAsKey('name') |
||
| 36 | ->prototype('scalar')->end() |
||
| 37 | ->defaultValue([ |
||
| 38 | 'fontCache' => '%kernel.cache_dir%', |
||
| 39 | ]) |
||
| 40 | ->end() |
||
| 41 | ->end() |
||
| 42 | ; |
||
| 43 | |||
| 44 | return $treeBuilder; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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.