These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace kujaff\VersionsBundle; |
||
4 | |||
5 | use kujaff\VersionsBundle\Model\VersionnedBundle; |
||
6 | use kujaff\VersionsBundle\DependencyInjection\Compiler\TaggedServicesPass; |
||
7 | use kujaff\VersionsBundle\Entity\Version; |
||
8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
9 | |||
10 | class VersionsBundle extends VersionnedBundle |
||
11 | { |
||
12 | /** |
||
13 | * Constructor |
||
14 | */ |
||
15 | public function __construct() |
||
16 | { |
||
17 | $this->version = new Version('2.0.1'); |
||
0 ignored issues
–
show
|
|||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @inherited |
||
22 | */ |
||
23 | public function build(ContainerBuilder $container) |
||
24 | { |
||
25 | parent::build($container); |
||
26 | |||
27 | $container->addCompilerPass(new TaggedServicesPass()); |
||
28 | } |
||
29 | } |
||
30 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..