These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /* |
||
6 | * This file is a part of Sculpin. |
||
7 | * |
||
8 | * (c) Dragonfly Development Inc. |
||
9 | * |
||
10 | * For the full copyright and license information, please view the LICENSE |
||
11 | * file that was distributed with this source code. |
||
12 | */ |
||
13 | |||
14 | namespace Sculpin\Bundle\SculpinBundle\DependencyInjection; |
||
15 | |||
16 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
17 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
18 | |||
19 | /** |
||
20 | * @author Beau Simensen <[email protected]> |
||
21 | */ |
||
22 | final class Configuration implements ConfigurationInterface |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function getConfigTreeBuilder(): TreeBuilder |
||
28 | { |
||
29 | $treeBuilder = new TreeBuilder; |
||
30 | |||
31 | $rootNode = $treeBuilder->root('sculpin'); |
||
32 | |||
33 | $rootNode |
||
0 ignored issues
–
show
|
|||
34 | ->children() |
||
35 | ->scalarNode('source_dir')->defaultValue('%sculpin.project_dir%/source')->end() |
||
36 | ->scalarNode('output_dir')->defaultValue('%sculpin.project_dir%/output_%kernel.environment%')->end() |
||
37 | ->arrayNode('exclude') |
||
38 | ->prototype('scalar')->end() |
||
39 | ->end() |
||
40 | ->arrayNode('ignore') |
||
41 | ->prototype('scalar')->end() |
||
42 | ->end() |
||
43 | ->arrayNode('raw') |
||
44 | ->prototype('scalar')->end() |
||
45 | ->end() |
||
46 | ->scalarNode('permalink')->defaultValue('pretty')->end() |
||
47 | ->end(); |
||
48 | |||
49 | return $treeBuilder; |
||
50 | } |
||
51 | } |
||
52 |
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.