| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function testCallbackReturnsAddonsFromBody() |
||
| 36 | { |
||
| 37 | $this->loader->expects($this->once()) |
||
| 38 | ->method('doRequest') |
||
| 39 | ->with($this->isType('string'), $this->isType('callable')) |
||
| 40 | ->will($this->returnArgument(1)); |
||
| 41 | |||
| 42 | $result = $this->loader->getAddonNames(); |
||
| 43 | $mockResponse = [ |
||
| 44 | 'foo' => 'bar', |
||
| 45 | 'addons' => 'baz', |
||
| 46 | ]; |
||
| 47 | |||
| 48 | $this->assertSame('baz', $result($mockResponse)); |
||
| 49 | } |
||
| 60 |
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..