TemplateHooksBundle::getContainerExtension()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Braunstetter\TemplateHooks;
4
5
use Braunstetter\TemplateHooks\DependencyInjection\TemplateHooksExtension;
6
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
class TemplateHooksBundle extends Bundle
10
{
11
    public function getContainerExtension(): bool|TemplateHooksExtension|ExtensionInterface|null
0 ignored issues
show
Bug introduced by
The type Braunstetter\TemplateHooks\null was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
    {
13
        if (null === $this->extension) {
14
            $this->extension = new TemplateHooksExtension();
15
        }
16
17
        return $this->extension;
18
    }
19
}