| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public static function db_survey_get_answer_texts($announce) { |
||
| 30 | $survey_query = doquery( |
||
| 31 | "SELECT survey_answer_text AS `TEXT`, count(DISTINCT survey_vote_id) AS `VOTES` |
||
| 32 | FROM `{{survey_answers}}` AS sa |
||
| 33 | LEFT JOIN `{{survey_votes}}` AS sv ON sv.survey_parent_answer_id = sa.survey_answer_id |
||
| 34 | WHERE sa.survey_parent_id = {$announce['survey_id']} |
||
| 35 | GROUP BY survey_answer_id |
||
| 36 | ORDER BY survey_answer_id;" |
||
| 37 | ); |
||
| 38 | |||
| 39 | return $survey_query; |
||
| 40 | } |
||
| 41 | |||
| 54 | } |
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: