From: Máté Kocsis Date: Sat, 11 Apr 2020 12:13:11 +0000 (+0200) Subject: Lowercase NULL to null in stubs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b2a8a6dda165ccba9e1366d9f690b75ee4acfe9;p=php Lowercase NULL to null in stubs --- diff --git a/ext/filter/filter.stub.php b/ext/filter/filter.stub.php index 5014e60dd9..517a3a055c 100644 --- a/ext/filter/filter.stub.php +++ b/ext/filter/filter.stub.php @@ -8,26 +8,26 @@ function filter_has_var(int $type, string $variable_name): bool {} * @param mixed $options * @return mixed */ -function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = NULL) {} +function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = null) {} /** * @param mixed $variable * @param mixed $options * @return mixed */ -function filter_var($variable, int $filter = FILTER_DEFAULT, $options = NULL) {} +function filter_var($variable, int $filter = FILTER_DEFAULT, $options = null) {} /** * @param mixed $options * @return mixed */ -function filter_input_array(int $type, $options = NULL, bool $add_empty = true) {} +function filter_input_array(int $type, $options = null, bool $add_empty = true) {} /** * @param mixed $options * @return mixed */ -function filter_var_array(array $data, $options = NULL, bool $add_empty = true) {} +function filter_var_array(array $data, $options = null, bool $add_empty = true) {} function filter_list(): array {} diff --git a/ext/filter/filter_arginfo.h b/ext/filter/filter_arginfo.h index 10a8a5af9d..8d3f1c0394 100644 --- a/ext/filter/filter_arginfo.h +++ b/ext/filter/filter_arginfo.h @@ -9,24 +9,24 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input, 0, 0, 2) ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, variable_name, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filter, IS_LONG, 0, "FILTER_DEFAULT") - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var, 0, 0, 1) ZEND_ARG_INFO(0, variable) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filter, IS_LONG, 0, "FILTER_DEFAULT") - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_input_array, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_var_array, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, options, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, add_empty, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() diff --git a/ext/gd/gd.stub.php b/ext/gd/gd.stub.php index 79dca96fa8..3202a8b541 100644 --- a/ext/gd/gd.stub.php +++ b/ext/gd/gd.stub.php @@ -98,28 +98,28 @@ function imagecreatefromtga(string $filename): GdImage|false {} function imagexbm(GdImage $im, ?string $filename, int $foreground = UNKNOWN): bool {} -function imagegif(GdImage $im, $to = NULL): bool {} +function imagegif(GdImage $im, $to = null): bool {} #ifdef HAVE_GD_PNG -function imagepng(GdImage $im, $to = NULL, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {} +function imagepng(GdImage $im, $to = null, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {} #endif #ifdef HAVE_GD_WEBP -function imagewebp(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {} +function imagewebp(GdImage $im, $to = null, int $quality = UNKNOWN): bool {} #endif #ifdef HAVE_GD_JPG -function imagejpeg(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {} +function imagejpeg(GdImage $im, $to = null, int $quality = UNKNOWN): bool {} #endif -function imagewbmp(GdImage $im, $to = NULL, int $foreground = UNKNOWN): bool {} +function imagewbmp(GdImage $im, $to = null, int $foreground = UNKNOWN): bool {} function imagegd(GdImage $im, $to = UNKNOWN): bool {} function imagegd2(GdImage $im, $to = UNKNOWN, int $chunk_size = UNKNOWN, int $type = UNKNOWN): bool {} #ifdef HAVE_GD_BMP -function imagebmp(GdImage $im, $to = NULL, int $compressed = 1): bool {} +function imagebmp(GdImage $im, $to = null, int $compressed = 1): bool {} #endif function imagedestroy(GdImage $im): bool {} diff --git a/ext/gd/gd_arginfo.h b/ext/gd/gd_arginfo.h index f2673c935c..eb60f889ef 100644 --- a/ext/gd/gd_arginfo.h +++ b/ext/gd/gd_arginfo.h @@ -204,13 +204,13 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagegif, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_END_ARG_INFO() #if defined(HAVE_GD_PNG) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagepng, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, filters, IS_LONG, 0) ZEND_END_ARG_INFO() @@ -219,7 +219,7 @@ ZEND_END_ARG_INFO() #if defined(HAVE_GD_WEBP) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagewebp, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -227,14 +227,14 @@ ZEND_END_ARG_INFO() #if defined(HAVE_GD_JPG) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagejpeg, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagewbmp, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_ARG_TYPE_INFO(0, foreground, IS_LONG, 0) ZEND_END_ARG_INFO() @@ -253,7 +253,7 @@ ZEND_END_ARG_INFO() #if defined(HAVE_GD_BMP) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagebmp, 0, 1, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, im, GdImage, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "NULL") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, to, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compressed, IS_LONG, 0, "1") ZEND_END_ARG_INFO() #endif