| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function setUp() |
||
| 17 | { |
||
| 18 | $this->renderer = m::mock(AbstractRenderer::class)->makePartial(); |
||
|
|
|||
| 19 | |||
| 20 | $parser = m::mock(ParserInterface::class) |
||
| 21 | ->shouldReceive('getPositionX') |
||
| 22 | ->andReturn(2) |
||
| 23 | ->shouldReceive('getPositionY') |
||
| 24 | ->andReturn(3) |
||
| 25 | ->shouldReceive('getWidth') |
||
| 26 | ->andReturn(4) |
||
| 27 | ->shouldReceive('getHeight') |
||
| 28 | ->andReturn(5) |
||
| 29 | ->getMock() |
||
| 30 | ->makePartial(); |
||
| 31 | |||
| 32 | $this->renderer->setParser($parser); |
||
| 33 | |||
| 34 | $this->renderer->setScale(10.2); |
||
| 35 | } |
||
| 36 | |||
| 57 |
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..