| 1 | <?php |
||
| 12 | class Collection implements AdapterInterface |
||
| 13 | { |
||
| 14 | /** @var Doctrine\Common\Collections\Collection */ |
||
| 15 | protected $collection; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param mixed[] $collection |
||
| 19 | */ |
||
| 20 | 4 | public function __construct(DoctrineCollection $collection) |
|
| 21 | { |
||
| 22 | 4 | $this->collection = $collection; |
|
|
|
|||
| 23 | 4 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | */ |
||
| 28 | 3 | public function getItems($offset, $itemCountPerPage) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | 1 | public function count() |
|
| 40 | } |
||
| 41 |
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..