Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
35 | public function testAccessorsMutators() |
||
36 | { |
||
37 | $this->parameterBag->setParameter('first', true); |
||
38 | self::assertTrue($this->parameterBag->hasParameter('first')); |
||
39 | self::assertTrue($this->parameterBag->hasParameter('first')); |
||
40 | self::assertCount(1, $this->parameterBag->getParameters()); |
||
41 | |||
42 | $this->parameterBag->setParameters([ |
||
43 | 'second' => 'second', |
||
44 | 'third' => 'third', |
||
45 | ]); |
||
46 | self::assertTrue($this->parameterBag->hasParameter('second')); |
||
47 | self::assertCount(2, $this->parameterBag->getParameters()); |
||
48 | } |
||
49 | } |
||
50 |
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..