| 1 | <?php |
||
| 3 | class DBStaticSurveyVote { |
||
| 4 | |||
| 5 | /** |
||
| 6 | * @param $announce |
||
| 7 | * @param $user |
||
| 8 | * |
||
| 9 | * @return array|bool|mysqli_result|null |
||
| 10 | */ |
||
| 11 | public static function db_survey_get_vote($announce, $user) { |
||
| 14 | |||
| 15 | |||
| 16 | /** |
||
| 17 | * @param $user |
||
| 18 | * @param $survey_id |
||
| 19 | * @param $survey_vote_id |
||
| 20 | * @param $user_name_safe |
||
| 21 | */ |
||
| 22 | public static function db_survey_vote_insert(&$user, $survey_id, $survey_vote_id, $user_name_safe) { |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $user |
||
| 29 | * @param $survey_id |
||
| 30 | * |
||
| 31 | * @return array|bool|mysqli_result|null |
||
| 32 | */ |
||
| 33 | public static function db_survey_vote_get(&$user, $survey_id) { |
||
| 38 | |||
| 39 | } |
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: