Skip to content

Commit 7a185b5

Browse files
committed
Fix filter_(var|input)_array default
1 parent af63050 commit 7a185b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/filter/filter.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ function filter_var($variable, int $filter = FILTER_DEFAULT, $options = null) {}
2121
* @param mixed $options
2222
* @return mixed
2323
*/
24-
function filter_input_array(int $type, $options = null, bool $add_empty = true) {}
24+
function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empty = true) {}
2525

2626
/**
2727
* @param mixed $options
2828
* @return mixed
2929
*/
30-
function filter_var_array(array $data, $options = null, bool $add_empty = true) {}
30+
function filter_var_array(array $data, $options = FILTER_DEFAULT, bool $add_empty = true) {}
3131

3232
function filter_list(): array {}
3333

ext/filter/filter_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ ZEND_END_ARG_INFO()
2020

2121
ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input_array, 0, 0, 1)
2222
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
23-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
23+
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "FILTER_DEFAULT")
2424
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true")
2525
ZEND_END_ARG_INFO()
2626

2727
ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var_array, 0, 0, 1)
2828
ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
29-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null")
29+
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "FILTER_DEFAULT")
3030
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true")
3131
ZEND_END_ARG_INFO()
3232

0 commit comments

Comments
 (0)