GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#21)
by Christian
01:49
created

Symfony/DependencyInjection/Configuration.php (1 issue)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\Doctrine\Bridge\Symfony\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
15
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
16
use Symfony\Component\Config\Definition\ConfigurationInterface;
17
18
final class Configuration implements ConfigurationInterface
19
{
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');
0 ignored issues
show
Deprecated Code introduced by
The function Symfony\Component\Config...der\TreeBuilder::root() has been deprecated: since Symfony 4.3, pass the root name to the constructor instead ( Ignorable by Annotation )

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

26
            $rootNode = /** @scrutinizer ignore-deprecated */ $treeBuilder->root('core23_doctrine');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
27
        } else {
28
            $rootNode = $treeBuilder->getRootNode();
29
        }
30
31
        \assert($rootNode instanceof ArrayNodeDefinition);
32
33
        $this->addTableSection($rootNode);
34
35
        return $treeBuilder;
36
    }
37
38
    private function addTableSection(ArrayNodeDefinition $node): void
39
    {
40
        $node
41
            ->children()
42
                ->arrayNode('table')
43
                    ->addDefaultsIfNotSet()
44
                    ->children()
45
                        ->scalarNode('prefix')->defaultNull()->end()
46
                    ->end()
47
                ->end()
48
            ->end()
49
        ;
50
    }
51
}
52