Ниже приведен код
function addValidation($variable,$validator,$error)
{
$validator_obj = new ValidatorObj();
$validator_obj->variable_name = $variable;
$validator_obj->validator_string = $validator;
$validator_obj->error_string = $error;
array_push($this->validator_array,$validator_obj);
}
Ниже обнаружена ошибка: Скажите, пожалуйста, что делать?
[02-Jun-2018 19:38:19 UTC] PHP Warning: array_push() expects parameter 1 to be array, null given in /home/gurudev/public_html/login/include/formvalidator.php on line 90
[02-Jun-2018 19:38:19 UTC] PHP Warning: array_push() expects parameter 1 to be array, null given in /home/gurudev/public_html/login/include/formvalidator.php on line 90
[02-Jun-2018 19:38:19 UTC] PHP Warning: array_push() expects parameter 1 to be array, null given in /home/gurudev/public_html/login/include/formvalidator.php on line 90
[02-Jun-2018 19:38:19 UTC] PHP Warning: array_push() expects parameter 1 to be array, null given in /home/gurudev/public_html/login/include/formvalidator.php on line 90