Issues (3)

src/DependencyInjection/Configuration.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Nixilla\Api\LoggerBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
class Configuration implements ConfigurationInterface
9
{
10 1
    public function getConfigTreeBuilder()
11
    {
12 1
        $treeBuilder = new TreeBuilder('nixilla_api_logger');
13
14 1
        if ( ! method_exists($treeBuilder, 'getRootNode')) {
15
            $treeBuilder->root('nixilla_api_logger');
0 ignored issues
show
The method root() does not exist on Symfony\Component\Config...ion\Builder\TreeBuilder. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
            $treeBuilder->/** @scrutinizer ignore-call */ 
16
                          root('nixilla_api_logger');

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.

Loading history...
16
        }
17
18 1
        return $treeBuilder;
19
    }
20
}
21