| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 17 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 36 | public function testDirectPropertyAccess()  | 
            ||
| 37 |     { | 
            ||
| 38 | $count = 0;  | 
            ||
| 39 | $this  | 
            ||
| 40 | ->callback  | 
            ||
| 41 | ->expects(self::exactly(3))  | 
            ||
| 42 |             ->method('__invoke') | 
            ||
| 43 |             ->will(self::returnCallback(function ($name) use (& $count) { | 
            ||
| 44 | $count += 1;  | 
            ||
| 45 | |||
| 46 | return $name . ' - ' . $count;  | 
            ||
| 47 | }));  | 
            ||
| 48 | |||
| 49 |         $this->assertSame('foo - 1', $this->lazyMap->foo); | 
            ||
| 50 |         $this->assertSame('bar - 2', $this->lazyMap->bar); | 
            ||
| 51 |         $this->assertSame('baz\\tab - 3', $this->lazyMap->{'baz\\tab'}); | 
            ||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 | 
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..