1 | <?php |
||
22 | class ModelFilter extends Filter |
||
23 | { |
||
24 | /** |
||
25 | * @param ProxyQueryInterface $queryBuilder |
||
26 | * @param string $alias |
||
27 | * @param string $field |
||
28 | * @param mixed $data |
||
29 | */ |
||
30 | public function filter(ProxyQueryInterface $queryBuilder, $alias, $field, $data): void |
||
48 | |||
49 | public function getDefaultOptions() |
||
60 | |||
61 | public function getRenderSettings() |
||
71 | |||
72 | /** |
||
73 | * @param ProxyQueryInterface $queryBuilder |
||
74 | * @param type $alias |
||
75 | * @param type $field |
||
76 | * @param type $data |
||
77 | * |
||
78 | * @return type |
||
79 | */ |
||
80 | protected function handleMultiple(ProxyQueryInterface $queryBuilder, $alias, $field, $data) |
||
99 | |||
100 | /** |
||
101 | * @param ProxyQueryInterface $queryBuilder |
||
102 | * @param type $alias |
||
103 | * @param type $field |
||
104 | * @param type $data |
||
105 | * |
||
106 | * @return type |
||
107 | */ |
||
108 | protected function handleScalar(ProxyQueryInterface $queryBuilder, $alias, $field, $data) |
||
124 | |||
125 | /** |
||
126 | * Return \MongoId if $id is MongoId in string representation, otherwise custom string. |
||
127 | * |
||
128 | * @param mixed $id |
||
129 | * |
||
130 | * @return \MongoId|string |
||
131 | */ |
||
132 | protected static function fixIdentifier($id) |
||
140 | |||
141 | /** |
||
142 | * Identifier field name is 'field' if mapping type is simple; otherwise, it's 'field.$id'. |
||
143 | * |
||
144 | * @param string $field |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | protected function getIdentifierField($field) |
||
154 | } |
||
155 |
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: