| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait ContainerAwareMethods |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var ContainerInterface |
||
| 25 | */ |
||
| 26 | protected $container; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get container |
||
| 30 | * |
||
| 31 | * @return InteropContainer |
||
| 32 | */ |
||
| 33 | public function getContainer() |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Set container |
||
| 40 | * |
||
| 41 | * @param InteropContainer $container |
||
| 42 | * |
||
| 43 | * @return self|$this|ContainerAwareMethods |
||
| 44 | */ |
||
| 45 | public function setContainer(InteropContainer $container) |
||
| 51 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.