Issues (13)

DependencyInjection/Configuration.php (2 issues)

1
<?php
2
3
namespace TinyPngBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This is the class that validates and merges configuration from your app/config files.
10
 *
11
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     * @codeCoverageIgnore
18
     */
19
    public function getConfigTreeBuilder()
20
    {
21
        $treeBuilder = new TreeBuilder();
22
        $rootNode = $treeBuilder->root('tiny_png');
0 ignored issues
show
The assignment to $rootNode is dead and can be removed.
Loading history...
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

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

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...
23
24
        // Here you should define the parameters that are allowed to
25
        // configure your bundle. See the documentation linked above for
26
        // more information on that topic.
27
28
        return $treeBuilder;
29
    }
30
}
31