| 1 | <?php |
||
| 19 | class Entity extends Material |
||
| 20 | { |
||
| 21 | /** @var QueryInterface Database query instance */ |
||
| 22 | protected $query; |
||
| 23 | |||
| 24 | /** @var array Collection of additional fields identifiers */ |
||
| 25 | protected static $fieldIDs; |
||
| 26 | |||
| 27 | /** @var array Collection of navigation identifiers */ |
||
| 28 | protected static $navigationIDs; |
||
| 29 | |||
| 30 | public static function byIDs(QueryInterface $query, $ids) |
||
| 37 | } |
||
| 38 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: