Skip to content

Commit eea5d0a

Browse files
committed
ext/openssl: use helper function for ValueError
1 parent 951c891 commit eea5d0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ PHP_METHOD(Openssl_Psk, __construct)
216216
ZEND_PARSE_PARAMETERS_END();
217217

218218
if (ZSTR_LEN(psk) == 0) {
219-
zend_argument_value_error(1, "must not be empty");
219+
zend_argument_must_not_be_empty_error(1);
220220
RETURN_THROWS();
221221
}
222222
if (ZSTR_LEN(psk) > PHP_OPENSSL_PSK_MAX_PSK_LEN) {

0 commit comments

Comments
 (0)