| 1 | <?php |
||
| 16 | class MongoDBEntityIdForTermLookup implements EntityIdForTermLookup { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Database |
||
| 20 | */ |
||
| 21 | private $database; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var MongoDBDocumentBuilder |
||
| 25 | */ |
||
| 26 | private $documentBuilder; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Database $database |
||
| 30 | * @param MongoDBDocumentBuilder $documentBuilder |
||
| 31 | */ |
||
| 32 | 2 | public function __construct( Database $database, MongoDBDocumentBuilder $documentBuilder ) { |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @see EntityDocumentLookup::getEntityDocumentsForTerm |
||
| 39 | */ |
||
| 40 | 2 | public function getEntityIdsForTerm( Term $term, $entityType ) { |
|
| 56 | |||
| 57 | 2 | private function buildGetEntityIdForTermQuery( Term $term ) { |
|
| 64 | } |
||
| 65 |
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: