Skip to content

Commit 01c3001

Browse files
authored
ext/tidy: zend_parse_parameters_none -> ZEND_PARSE_PARAMETERS_NONE macro (#18913)
1 parent 4f1b005 commit 01c3001

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ext/tidy/tidy.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@
6767

6868
#define TIDY_FETCH_ONLY_OBJECT \
6969
PHPTidyObj *obj; \
70-
if (zend_parse_parameters_none() != SUCCESS) { \
71-
RETURN_THROWS(); \
72-
} \
70+
ZEND_PARSE_PARAMETERS_NONE(); \
7371
obj = Z_TIDY_P(ZEND_THIS); \
7472

7573
#define TIDY_SET_DEFAULT_CONFIG(_doc) \
@@ -1140,9 +1138,7 @@ PHP_FUNCTION(tidy_diagnose)
11401138
/* {{{ Get release date (version) for Tidy library */
11411139
PHP_FUNCTION(tidy_get_release)
11421140
{
1143-
if (zend_parse_parameters_none() != SUCCESS) {
1144-
RETURN_THROWS();
1145-
}
1141+
ZEND_PARSE_PARAMETERS_NONE();
11461142

11471143
#ifdef HAVE_TIDYRELEASEDATE
11481144
RETURN_STRING((const char *)tidyReleaseDate());

0 commit comments

Comments
 (0)