Use new helper function for "cannot be empty" ValueErrors

This commit is contained in:
Gina Peter Bnayard 2024-08-18 20:09:08 +02:00 committed by Gina Peter Banyard
parent 96d572a18e
commit e7c4d54d65
40 changed files with 96 additions and 96 deletions

View file

@ -2500,7 +2500,7 @@ PHP_FUNCTION(parse_ini_file)
ZEND_PARSE_PARAMETERS_END();
if (ZSTR_LEN(filename) == 0) {
zend_argument_value_error(1, "cannot be empty");
zend_argument_cannot_be_empty_error(1);
RETURN_THROWS();
}