| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getConfigTreeBuilder() |
||
| 20 | { |
||
| 21 | $treeBuilder = new TreeBuilder('elao_enum'); |
||
| 22 | $rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('elao_enum'); |
||
|
|
|||
| 23 | |||
| 24 | $rootNode->children() |
||
| 25 | ->arrayNode('argument_value_resolver')->canBeDisabled()->end() |
||
| 26 | ->arrayNode('serializer') |
||
| 27 | ->{interface_exists(SerializerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}() |
||
| 28 | ->end() |
||
| 29 | ->end(); |
||
| 30 | |||
| 31 | return $treeBuilder; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |
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.